Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:

THEMA: Dynamically generate options depending on tokens table

Dynamically generate options depending on tokens table 9 Monate 1 Woche her #97933

  • Earnest56
  • Earnest56s Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 9
  • Karma: 0
Dears,

I want to dynamically generate the options of "Multiple Choice" question depending on the user in the "Tokens" table. I mean when each user open his survey (case of closed survey), different options occur to him.

Is there a way to do this in limesurvey? Anybody did this before and can help me?

Thanks
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Dynamically generate options depending on tokens table 9 Monate 1 Woche her #97939

  • DenisChenu
  • DenisChenus Avatar
  • OFFLINE
  • Moderator Lime
  • Beiträge: 5838
  • Dank erhalten: 714
  • Karma: 222
Hello,

Easy way : Use TOKEN:ATTRIBUTE_1=="condition" in Relevance equation and do X different question.

Denis
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Dynamically generate options depending on tokens table 9 Monate 1 Woche her #97979

  • Earnest56
  • Earnest56s Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 9
  • Karma: 0
Thanks Denis! Would you please give me more details about this way & perhaps what guide I can use to know how to add attributes & equations..etc. since I'm new to this. :unsure:

Thanks a lot
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Dynamically generate options depending on tokens table 9 Monate 2 Tage her #98078

  • Earnest56
  • Earnest56s Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 9
  • Karma: 0
Hi Denis,

Is there a way to do "OR" condition instead of "AND"? I mean I want something like:
((TOKEN:ATTRIBUTE_1 == "condition") or (TOKEN:ATTRIBUTE_2 == "condition"))

Thanks a lot
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Dynamically generate options depending on tokens table 9 Monate 1 Tag her #98116

  • DenisChenu
  • DenisChenus Avatar
  • OFFLINE
  • Moderator Lime
  • Beiträge: 5838
  • Dank erhalten: 714
  • Karma: 222
Hi,
snowhite schrieb:
((TOKEN:ATTRIBUTE_1 == "condition") or (TOKEN:ATTRIBUTE_2 == "condition"))
Yes: but you had to delete existing consition and put this directly in input.

See Expression Manager documentation.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Dynamically generate options depending on tokens table 9 Monate 1 Tag her #98140

  • Earnest56
  • Earnest56s Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 9
  • Karma: 0
Great! Thank you... Solved :)
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Moderatoren: ITEd
Ladezeit der Seite: 0.133 Sekunden
Donation Image