Check out the LimeSurvey source code on GitHub!

random answer to radio question.

More
3 years 6 months ago #98859 by first
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."

Please Log in to join the conversation.

More
3 years 6 months ago #98861 by first
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."

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form