Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: random answer to radio question.

random answer to radio question. 3 years 1 month ago #98859

  • OMdev
  • OMdev's Avatar
  • Offline
  • Platinum Lime
  • Posts: 328
  • Thank you received: 35
  • Karma: 15
Can someone please suggest me how can implement a random answer to List radio type question.My first priority would be using EM and I think it also be done using Javascript. I am trying to implement myself but no success so far.I would be very thankful for any help.
Survey Designer and Programmer
"I always suggest to have a group by group display layout and create a seprate group for each question. This will be extra work but you will get flexiblity to create your question by using more than more lime survey question types."
The administrator has disabled public write access.

random answer to radio question. 3 years 1 month ago #98861

  • OMdev
  • OMdev's Avatar
  • Offline
  • Platinum Lime
  • Posts: 328
  • Thank you received: 35
  • Karma: 15
Did it,

Create a hidden equation question "ask"
q1 is the radio question with 3 answer options then use equation .

{q1 = if(ask >= 1, ask, floor(rand(1, 3.9999)))}
Survey Designer and Programmer
"I always suggest to have a group by group display layout and create a seprate group for each question. This will be extra work but you will get flexiblity to create your question by using more than more lime survey question types."
The administrator has disabled public write access.
Time to create page: 0.282 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form