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

TOPIC: Passing answer from current survey via "End URL"

Passing answer from current survey via "End URL" 5 years 7 months ago #55521

Would like to pass a value from survey A to survey B via the end url of survey A and store in a hidden question in Survey B. Only issue is getting access to the answer of the appropriate question in survey A to insert it into the end url. Is this possible in any way? I have no problems editing the source php if I can be pointed in the proper direction.
The administrator has disabled public write access.

Passing answer from current survey via "End URL" 5 years 7 months ago #55528

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6214
  • Thank you received: 1376
  • Karma: 539
I don't know about the PHP code but you can use JavaScript and a cookie to pass the value of an answer to the end page. Have a look at this post - www.limesurvey.org/en/forum/can-i-do-thi...ge-using-survey-data
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The administrator has disabled public write access.
The following user(s) said Thank You: RhythmScout

Passing answer from current survey via "End URL" 5 years 7 months ago #55539

Thanks, worked perfectly.
The administrator has disabled public write access.

Passing answer from current survey via "End URL" 5 years 7 months ago #55540

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6214
  • Thank you received: 1376
  • Karma: 539
Cool, glad to help.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The administrator has disabled public write access.

Passing answer from current survey via "End URL" 5 years 7 months ago #55569

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5984
  • Thank you received: 368
  • Karma: 260
RhythmScout wrote:
Thanks, worked perfectly.
You're welcome!

If our hints have been helpful and you enjoy limesurvey please consider a donation to the team .
We do all this in our free time and you don't have to pay a penny for this software.

Without your help we can't keep this project alive.

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'"
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.418 seconds
Imprint                   Data Protection Statement                  Revocation information and revocation form