Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Add URL parameter and save it!

Add URL parameter and save it! 2 years 4 months ago #106252

  • rmsolar
  • rmsolar's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 9
  • Thank you received: 1
  • Karma: 0
Hi all,

I have created a survey with lets say this url:

test.example.com/limesurvey/index.php/862176/lang-en

Everything works fine.

My question is that: Can I add a parameter at the end of url like test.example.com/limesurvey/index.php/86...en?whatever=sdd-0001

and to be able to save this parameter's value?
Last Edit: 10 months 2 weeks ago by DenisChenu. Reason: example.com is done for example link
The administrator has disabled public write access.
The following user(s) said Thank You: giasu365

Add URL parameter and save it! 2 years 4 months ago #106261

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5063
  • Thank you received: 749
  • Karma: 227
Yes and there should be quite a few threads about how to do this in the forum and probably a solution in the workaround section of the manual.

What you need to do is read the value into a hidden text question (via css).
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.
The following user(s) said Thank You: blacknail

Add URL parameter and save it! 2 years 4 months ago #106263

  • Ben_V
  • Ben_V's Avatar
  • Offline
  • Platinum Lime
  • Posts: 1798
  • Thank you received: 440
  • Karma: 110
Hi,
Please look at this page of the manual
.
Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
All LS releases => bit.ly/1VMuTDu | 2.06lts => bit.ly/1Qv44A1
Demo surveys => bit.ly/20NW9V8 (already included in /docs/demosurveys)
The administrator has disabled public write access.

Add URL parameter and save it! 2 years 4 months ago #106280

  • rmsolar
  • rmsolar's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 9
  • Thank you received: 1
  • Karma: 0
Thanks for the responses! I have read the manual and also the link that Ben_V provided but still I don't get how to use the {PASSTHRU:<paramname>} .. I defined in the Panel integration a paramname but still I can't save it and see it in the responses.

To make more clear what I want is to have the URL of the survey as I write it before
test.test.com/limesurvey/index.php/862176/lang-en

and then send to the participants via email specific URL for each user of the above (same) survey like

test.test.com/limesurvey/index.php/862176/lang-en?whatever=sdd-0001

and to be able to see the responses based on the parameter of the url...
The administrator has disabled public write access.

Add URL parameter and save it! 2 years 4 months ago #106283

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5974
  • Thank you received: 366
  • Karma: 260
If you have a short text question with question code "mid" you can adjust your URL as follows to pass data into that question:
www.example.com/index.php/survey/index/s...8/newtest/Y/lang/de/mid/55555

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
Last Edit: 10 months 2 weeks ago by DenisChenu. Reason: example.com is done for example link
The administrator has disabled public write access.
The following user(s) said Thank You: rmsolar

Add URL parameter and save it! 2 years 4 months ago #106290

  • rmsolar
  • rmsolar's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 9
  • Thank you received: 1
  • Karma: 0
thank you very much Mazi!! it worked like this!! :)
Last Edit: 2 years 4 months ago by rmsolar.
The administrator has disabled public write access.

Add URL parameter and save it! 1 year 8 months ago #114604

  • Kevin
  • Kevin's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 7
  • Thank you received: 1
  • Karma: 1
I have read the documentation for several hours and I can't figure it out. I also posted a similar question here: www.limesurvey.org/en/forum/installation...-several-id-s#114532

Using a similar url to the link below populates the answer with 1234567.

survey.com/index.php/survey/index/sid/689956/newtest/Y/lang/en/R5/1234567
Last Edit: 1 year 8 months ago by Kevin. Reason: typo
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.717 seconds
Imprint                   Data Protection Statement                  Revocation information and revocation form