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

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

variable endurl upon radio button question - how can I do that? 1 Jahr 5 Monate her #94038

  • DenisChenu
  • DenisChenus Avatar
  • OFFLINE
  • Moderator Lime
  • Beiträge: 6256
  • Dank erhalten: 799
  • Karma: 239
blazko schrieb:
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","")}
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Folgende Benutzer bedankten sich: blazko

variable endurl upon radio button question - how can I do that? 1 Jahr 5 Monate her #94039

  • blazko
  • blazkos Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 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?
Der Administrator hat öffentliche Schreibrechte deaktiviert.

variable endurl upon radio button question - how can I do that? 1 Jahr 5 Monate her #94059

  • DenisChenu
  • DenisChenus Avatar
  • OFFLINE
  • Moderator Lime
  • Beiträge: 6256
  • Dank erhalten: 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
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Folgende Benutzer bedankten sich: blazko
  • Seite:
  • 1
  • 2
Moderatoren: ITEd
Ladezeit der Seite: 0.236 Sekunden
Donation Image