Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:
  • Seite:
  • 1
  • 2

THEMA: Prefilling answer and passing through in end URL

Prefilling answer and passing through in end URL 2 Jahre 3 Monate her #77819

  • Fred
  • Freds Avatar
  • OFFLINE
  • Gold Lime
  • Beiträge: 163
  • Dank erhalten: 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? :(
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: Prefilling answer and passing through in end URL 2 Jahre 3 Monate her #77824

  • DenisChenu
  • DenisChenus Avatar
  • OFFLINE
  • Moderator Lime
  • Beiträge: 6222
  • Dank erhalten: 791
  • Karma: 238
Hello,

What is your version of LS ?
Maybe this functionnality aren't tested in 192.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: Prefilling answer and passing through in end URL 2 Jahre 3 Monate her #77827

  • TMSWhite
  • TMSWhites Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 759
  • Dank erhalten: 82
  • Karma: 36
This definitely works in 1.92+. It was fixed in time for the 1.92 RC5 release (see this bug report)
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: Prefilling answer and passing through in end URL 2 Jahre 3 Monate her #77835

  • DenisChenu
  • DenisChenus Avatar
  • OFFLINE
  • Moderator Lime
  • Beiträge: 6222
  • Dank erhalten: 791
  • Karma: 238
TMSWhite schrieb:
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
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: Prefilling answer and passing through in end URL 2 Jahre 3 Monate her #77866

  • Fred
  • Freds Avatar
  • OFFLINE
  • Gold Lime
  • Beiträge: 163
  • Dank erhalten: 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
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: Prefilling answer and passing through in end URL 2 Jahre 3 Monate her #77930

  • Mazi
  • Mazis Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 5301
  • Dank erhalten: 291
  • Karma: 247
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'"
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: Prefilling answer and passing through in end URL 2 Jahre 3 Monate her #77985

  • Fred
  • Freds Avatar
  • OFFLINE
  • Gold Lime
  • Beiträge: 163
  • Dank erhalten: 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
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: Prefilling answer and passing through in end URL 2 Jahre 3 Monate her #77987

  • TMSWhite
  • TMSWhites Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 759
  • Dank erhalten: 82
  • Karma: 36
Fred-

You were right - it was a bug. It has been fixed on GitHub.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: Prefilling answer and passing through in end URL 2 Jahre 3 Monate her #77995

  • Mazi
  • Mazis Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 5301
  • Dank erhalten: 291
  • Karma: 247
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'"
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: Prefilling answer and passing through in end URL 2 Jahre 3 Monate her #78025

  • Fred
  • Freds Avatar
  • OFFLINE
  • Gold Lime
  • Beiträge: 163
  • Dank erhalten: 5
  • Karma: 3
Yes, thanks so much Tom.

I really assumed I was doing something wrong!
Der Administrator hat öffentliche Schreibrechte deaktiviert.
  • Seite:
  • 1
  • 2
Moderatoren: ITEd
Ladezeit der Seite: 0.167 Sekunden
Donation Image