Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Prefilling answer and passing through in end URL

Prefilling answer and passing through in end URL 2 years 2 weeks ago #77819

  • Fred
  • Fred's Avatar
  • OFFLINE
  • Gold Lime
  • Posts: 163
  • Thank you received: 5
  • Karma: 3
Help! Can somebody explain why this isn't working?

I have a "introduction" survey followed by a variety of follow-up surveys. Depending on the situation I want to call different follow up surveys.

So my plan was to prefill the second survey id in a hidden question in the first survey, then pass it into the end url.

I start the first survey with this url:
index.php?sid=19839&19839X29X575=61625

The end URL is set to this:
index.php?sid={INSERTANS:19839X29X575}

Neither step seems to be working. The prefilled parameter isn't going in from the starting URL, and if I do insert it manually it doesn't pass it through, the survey id in the end URL just comes through blank.


Any ideas? :(
The administrator has disabled public write access.

Re: Prefilling answer and passing through in end URL 2 years 2 weeks ago #77824

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 5845
  • Thank you received: 715
  • Karma: 222
Hello,

What is your version of LS ?
Maybe this functionnality aren't tested in 192.
The administrator has disabled public write access.

Re: Prefilling answer and passing through in end URL 2 years 2 weeks ago #77827

  • TMSWhite
  • TMSWhite's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 759
  • Thank you received: 81
  • Karma: 36
This definitely works in 1.92+. It was fixed in time for the 1.92 RC5 release (see this bug report)
The administrator has disabled public write access.

Re: Prefilling answer and passing through in end URL 2 years 2 weeks ago #77835

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 5845
  • Thank you received: 715
  • Karma: 222
TMSWhite wrote:
This definitely works in 1.92+. It was fixed in time for the 1.92 RC5 release (see this bug report)
Thanks for the link Tom !

Denis
The administrator has disabled public write access.

Re: Prefilling answer and passing through in end URL 2 years 2 weeks ago #77866

  • Fred
  • Fred's Avatar
  • OFFLINE
  • Gold Lime
  • Posts: 163
  • Thank you received: 5
  • Karma: 3
Ok, thanks for the link Tom. I am planning to have the question hidden, but tried it both ways anyway.

I did test this in 1.91 anyway and it worked correctly. The prefill worked on a hidden and a non-hidden question. And the end URL had the right value.

Then I went back to 1.92 and now I can get the question to prefill, but it's not passing the value through to the end URL. It just shows "sid= "

Has this changed in 1.92? Notice I'm using the SGQA id. Not sure if Expression Manager has any bearing on this
The administrator has disabled public write access.

Re: Prefilling answer and passing through in end URL 2 years 2 weeks ago #77930

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5279
  • Thank you received: 289
  • Karma: 246
You can test if this is fixed at the latest version by testing our online demo which always runs the latest Limesurvey version.
Username: admin
Password: test
If you can reproduce the problem there please report back.

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.

Re: Prefilling answer and passing through in end URL 2 years 2 weeks ago #77985

  • Fred
  • Fred's Avatar
  • OFFLINE
  • Gold Lime
  • Posts: 163
  • Thank you received: 5
  • Karma: 3
I set up 2 test surveys on the demo site and was able to reproduce the problem. I left the prefill question non-hidden so you can see the prefill is working. But the survey id is not coming out in the end URL. I did add the language parameter this time just to see if it made a difference, but it didn't Try it out.

ABC Survey 1: sid = 66892
ABC Survey 2: sid = 64971

Link to start ABC Survey 1:
demo.limesurvey.org/index.php?sid=66892&...66892X230X1453=64971

END URL (should go to ABC Survey 2):
demo.limesurvey.org/index.php?sid={INSER...92X230X1453}&lang=en
The administrator has disabled public write access.

Re: Prefilling answer and passing through in end URL 2 years 2 weeks ago #77987

  • TMSWhite
  • TMSWhite's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 759
  • Thank you received: 81
  • Karma: 36
Fred-

You were right - it was a bug. It has been fixed on GitHub.
The administrator has disabled public write access.

Re: Prefilling answer and passing through in end URL 2 years 2 weeks ago #77995

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5279
  • Thank you received: 289
  • Karma: 246
And the price for fastest bug fixing goes toooooo...

Tom!

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.

Re: Prefilling answer and passing through in end URL 2 years 2 weeks ago #78025

  • Fred
  • Fred's Avatar
  • OFFLINE
  • Gold Lime
  • Posts: 163
  • Thank you received: 5
  • Karma: 3
Yes, thanks so much Tom.

I really assumed I was doing something wrong!
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: ITEd
Time to create page: 0.128 seconds
Donation Image