Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Dynamically generate options depending on tokens table

  • Earnest56
  • Earnest56's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 8 months ago #97933 by Earnest56
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
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 8 months ago #97939 by DenisChenu
Hello,

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

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • Earnest56
  • Earnest56's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 8 months ago #97979 by Earnest56
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
The topic has been locked.
  • Earnest56
  • Earnest56's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 8 months ago #98078 by Earnest56
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
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 8 months ago #98116 by DenisChenu
Hi,

snowhite wrote: ((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.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • Earnest56
  • Earnest56's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 8 months ago #98140 by Earnest56
Great! Thank you... Solved :)
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose