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

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

variable endurl upon radio button question - how can I do that? 1 year 5 months ago #94038

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6252
  • Thank you received: 799
  • Karma: 239
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","")}
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? 1 year 5 months ago #94039

  • blazko
  • blazko's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 15
  • 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? 1 year 5 months ago #94059

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6252
  • Thank you received: 799
  • Karma: 239
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
The administrator has disabled public write access.
The following user(s) said Thank You: blazko
  • Page:
  • 1
  • 2
Moderators: ITEd
Time to create page: 0.212 seconds
Donation Image