Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Prefilling survey answers using the survey URL

  • stevelegare
  • stevelegare's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
9 years 4 months ago #115553 by stevelegare
I want to prefill an answer via a URL parameter.

I missed something from the ( manual )

I am using Version 2.05+ Build 141210.

My survey ID is 899326
Group ID 1789 or group name "g1"
Question ID 25694 (List (dropdown))
Answer code I want "a3"

I try with link like
www.example.com/index.php/survey/index/s.../Y?QCODE=q2&CODE2=a3

What did I missed?

Thanks
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 4 months ago - 9 years 4 months ago #115568 by tpartner
Replied by tpartner on topic Prefilling survey answers using the survey URL
Try this:

Code:
https://www.example.com/index.php/survey/index/sid/899326/newtest/Y/q2/a3

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 9 years 4 months ago by tpartner.
The topic has been locked.
  • stevelegare
  • stevelegare's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
9 years 4 months ago #115615 by stevelegare
Replied by stevelegare on topic Prefilling survey answers using the survey URL
Great this is what I was looking for.
The topic has been locked.
  • stevelegare
  • stevelegare's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
9 years 4 months ago #115619 by stevelegare
Replied by stevelegare on topic Prefilling survey answers using the survey URL
Can I do this with multiple prefill answers?
Like something
www.example.com/index.php/survey/index/s...ewtest/Y/q2/a3/q3/a1 (doesn't work)
The topic has been locked.
  • Mazi
  • Mazi's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
9 years 4 months ago #115630 by Mazi
Usually that should also work with multiple questions. Make sure the question code and passed answer codes are correct.

Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The topic has been locked.
  • stevelegare
  • stevelegare's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
9 years 4 months ago #115631 by stevelegare
Replied by stevelegare on topic Prefilling survey answers using the survey URL
Sorry I was not clear enough.
Is it possible to prefill 2 answers (q2 and q3) with one URL?
The topic has been locked.
  • Mazi
  • Mazi's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
9 years 4 months ago #115637 by Mazi
Yes, that should be doable.

Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose