Check out the LimeSurvey source code on GitHub!

Array question, rank with radio button.

More
3 years 10 months ago #94098 by nicoillo
Hi, i have an array question with 5 answer, and each answer has 5 radio button (1, 2, 3, 4, 5).

I've set a question validation equation like this:

((Q05_SQ001 != Q05_SQ002) AND (Q05_SQ001 != Q05_SQ003) AND (Q05_SQ001 != Q05_SQ004) AND (Q05_SQ001 != Q05_SQ005) AND (Q05_SQ002 != Q05_SQ001) AND (Q05_SQ002 != Q05_SQ003) AND (Q05_SQ002 != Q05_SQ004) AND (Q05_SQ002 != Q05_SQ005) AND (Q05_SQ003 != Q05_SQ001) AND (Q05_SQ003 != Q05_SQ002) AND (Q05_SQ003 != Q05_SQ004) AND (Q05_SQ003 != Q05_SQ005) AND (Q05_SQ004 != Q05_SQ001) AND (Q05_SQ004 != Q05_SQ002) AND (Q05_SQ004 != Q05_SQ003) AND (Q05_SQ004 != Q05_SQ005) AND (Q05_SQ005 != Q05_SQ001) AND (Q05_SQ005 != Q05_SQ002) AND (Q05_SQ005 != Q05_SQ003) AND (Q05_SQ005 != Q05_SQ004))

with relative tip. In this way the user cannot choose the same valutation in two different answer. (I know, it's awful, but it works fine.)

What I'm looking for is that when I click on radiobutton $N in the answer %B if there are other answers with radiobutton $N setted, these radiobuttons has to became unset.

How can I do that?! Thank you.

Please Log in to join the conversation.

More
3 years 10 months ago #94106 by tpartner

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

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