Welcome to the LimeSurvey Community Forum

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

JS to select randomly 2 answers out of 3 based on hidden question

  • DanielVN
  • DanielVN's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
4 years 4 months ago #190699 by DanielVN
Hi,

I'm trying to use the script to select randomly 2 answers selected in a multiple question posted under topic:

www.limesurvey.org/forum/can-i-do-this-w...ice-question?start=0

Unfortunatelly the script is not working for me as I need to base the script on a hidden multiple question, where i'm autopunching the answers of three separate List (radio) questions.

This means that I will always end up with 3 checked answers and I need to pull 2 answers out of these 3 randomly.

FYI: i'm using version 2.73
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 4 months ago #190706 by Joffm
Hi,
in my opinion there is no need to use javascript.
Here an example.

File Attachment:

File Name: limesurvey...7527.lss
File Size:23 KB


Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose