Prefilling answer and passing through in end URL

More
5 years 7 months ago #77819 by Fred01
Fred01 created the topic: Prefilling answer and passing through in end URL
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? :(

Please Log in to join the conversation.

More
5 years 7 months ago #77824 by DenisChenu
DenisChenu replied the topic: Prefilling answer and passing through in end URL
Hello,

What is your version of LS ?
Maybe this functionnality aren't tested in 192.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
5 years 7 months ago #77827 by TMSWhite
TMSWhite replied the topic: Prefilling answer and passing through in end URL
This definitely works in 1.92+. It was fixed in time for the 1.92 RC5 release (see this bug report )

Please Log in to join the conversation.

More
5 years 7 months ago #77835 by DenisChenu
DenisChenu replied the topic: Prefilling answer and passing through in end URL

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

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
5 years 7 months ago #77866 by Fred01
Fred01 replied the topic: Prefilling answer and passing through in end URL
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

Please Log in to join the conversation.

More
5 years 7 months ago #77930 by Mazi
Mazi replied the topic: Prefilling answer and passing through in end URL
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)survey-consulting.com'"

Please Log in to join the conversation.

More
5 years 7 months ago #77985 by Fred01
Fred01 replied the topic: Prefilling answer and passing through in end URL
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

Please Log in to join the conversation.

More
5 years 7 months ago #77987 by TMSWhite
TMSWhite replied the topic: Prefilling answer and passing through in end URL
Fred-

You were right - it was a bug . It has been fixed on GitHub.

Please Log in to join the conversation.

More
5 years 7 months ago #77995 by Mazi
Mazi replied the topic: Prefilling answer and passing through in end URL
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)survey-consulting.com'"

Please Log in to join the conversation.

More
5 years 7 months ago #78025 by Fred01
Fred01 replied the topic: Prefilling answer and passing through in end URL
Yes, thanks so much Tom.

I really assumed I was doing something wrong!

Please Log in to join the conversation.

More
4 years 6 months ago - 4 years 6 months ago #95581 by cshaw
cshaw replied the topic: Prefilling answer and passing through in end URL
I am having a similar problem. I have a Parent Survey (sid: 691757) that contains a link (FHLINK) to a Child Survey (sid:579758). I want the user to select the link, fill in information about their female relative with cancer in the Child Survey, and have the Child Survey’s End-URL redirect back to this question on the Parent Survey returning the relative type which I want to use to populate a Long free text value on the Parent Survey.

Everything is working except the revision of the long free text when returning from the child survey. The returned End-URL from the Child Survey is: " nmtstudy.limequery.com/index.php/survey/.../RelativeList/Mother "

SO how do I get "Mother" out of the URL and append it into the Long free text (RelativeList) question on the Parent Survey?
Attachments:
Last Edit: 4 years 6 months ago by cshaw.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!