Welcome to the LimeSurvey Community Forum

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

Display only one choice

  • nadumont
  • nadumont's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 1 month ago #215834 by nadumont
Display only one choice was created by nadumont
Hello,

I have a multiple question (Q2) that shows 5 possible movies that someone could have watched. In the next question I would like to display randomly only 1 out of the choices of this Q2. The objective is to pick one of the selected movies on which the next questions will be asked.
I know how to filter based on the choices made in Q2, I know how to display those choices in a random order but I just cannot filter such that only the first item (of the random order) is displayed.
This could obviously be a hidden question, but I need a variable that selects randomly one of the choices made in Q2.

Thanks a lot for your help!
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 1 month ago #215893 by Joffm
Replied by Joffm on topic Display only one choice
Here a small example with only three equations.
 

File Attachment:

File Name: limesurvey...4877.lss
File Size:26 KB


   
 

 

 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: nadumont
The topic has been locked.
  • nadumont
  • nadumont's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 1 month ago #215918 by nadumont
Replied by nadumont on topic Display only one choice
Hi Joffm,

Thank you so much. It works great! And it is easy to do in LS for me who is not an expert in javascript :)
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose