- Posts: 4
- Thank you received: 0
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
- Topic Author
- Offline
- New Member
Less
More
10 years 8 months ago #97933
by Earnest56
Dynamically generate options depending on tokens table was created 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
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13907
- Thank you received: 2546
10 years 8 months ago #97939
by DenisChenu
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.
Replied by DenisChenu on topic Dynamically generate options depending on tokens table
Hello,
Easy way : Use TOKEN:ATTRIBUTE_1=="condition" in Relevance equation and do X different question.
Denis
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 0
10 years 8 months ago #97979
by Earnest56
Replied by Earnest56 on topic Dynamically generate options depending on tokens table
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.
Thanks a lot
Thanks a lot
The topic has been locked.
- Earnest56
- Topic Author
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 0
10 years 8 months ago #98078
by Earnest56
Replied by Earnest56 on topic Dynamically generate options depending on tokens table
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
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13907
- Thank you received: 2546
10 years 8 months ago #98116
by DenisChenu
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.
Replied by DenisChenu on topic Dynamically generate options depending on tokens table
Hi,
See Expression Manager documentation.
Yes: but you had to delete existing consition and put this directly in input.snowhite wrote: ((TOKEN:ATTRIBUTE_1 == "condition") or (TOKEN:ATTRIBUTE_2 == "condition"))
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 0
10 years 8 months ago #98140
by Earnest56
Replied by Earnest56 on topic Dynamically generate options depending on tokens table
Great! Thank you... Solved
The topic has been locked.