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

TOPIC: variable endurl upon radio button question - how can I do that?

variable endurl upon radio button question - how can I do that? 3 years 6 months ago #94038

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9352
  • Thank you received: 1339
  • Karma: 386
blazko wrote:
yes, endURL is a equation question type

the code actually look like this:

{if (druzyna.NAOK == "1"), 'google.pl', if(druzyna.NAOK == "2"), 'onet.pl', if(druzyna.NAOK == "3"), 'gazeta.pl', 'defaultValue' ))) }

should the endrl be placed in normal brackets () or in theses {}?

*Please use code:
{if(druzyna.NAOK == "1","http://example.org","")}{if(druzyna.NAOK == "2","http://example.com","")}{if(druzyna.NAOK == "3","http://example.net","")}
Assistance on LimeSurvey forum and LimeSurvey core developpement are on my free time (Say thanks ?).
A bug not reported is a bug not corrected. | Please, read the documentation | La doc en français à besoin de vous
The administrator has disabled public write access.
The following user(s) said Thank You: blazko

variable endurl upon radio button question - how can I do that? 3 years 6 months ago #94039

  • blazko
  • blazko's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 16
  • Karma: 0
Thanks Denis.

I already used the quota solution.

But if you could help me out in passing an aswer between surveys I would be greatful.

Those redirect url's are in fact 3 different surveys. Survey 1 that stores the url redirect code (quota actually) has also a random number variable. Is it possible to pass this number to the next survey (after redirect) and store it somewhere as a hidden answer for future participant matching?
The administrator has disabled public write access.

variable endurl upon radio button question - how can I do that? 3 years 6 months ago #94059

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9352
  • Thank you received: 1339
  • Karma: 386
You can use:

docs.limesurvey.org/tiki-index.php?page=Workarounds%3A+Survey+behaviour#Prefilling_survey_elements

And use EM in Quota too.

For this example, you can use:

ENDURLPARAMATER
?111X2X3={THEQCODE}

Where {THEQCODE} is the Expression to fill in next survey. Here the next surveyid is 111, the question is in the group 2, and the qid is 3.

(see SGQA ).

Denis
Assistance on LimeSurvey forum and LimeSurvey core developpement are on my free time (Say thanks ?).
A bug not reported is a bug not corrected. | Please, read the documentation | La doc en français à besoin de vous
The administrator has disabled public write access.
The following user(s) said Thank You: blazko
Time to create page: 1.095 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form