Hi - I'd like to set up a survey that asks respondents to rank their top 5 candidates from highest (#1) to lowest (#5) preference, while leaving the remaining 5 options null. How do I set up the validation to check for: 1) unique values 1-5 for when people perform their ranking (no duplicate #1s, min of 1 and max of 5) and 2) allow all other values to be null? It's probably okay to set a default value of 0 to all candidates to start, though this is not preferred. Or perhaps there is another way besides validations to do this? I am a ConfiForms newbie. Help.
Hi
Not sure I understand the data model you have, but let me give you an example of how would I validate unique options have been selected in all radio group fields
The following form
And (all) radio group fields are configured as follows:
Will add a validation rule to ensure the "sum" selected is 1+2+3+4+5=15
!answer1.add([entry.answer2]).add([entry.answer3]).add([entry.answer4]).add([entry.answer5]):15
So, the validation fails when it is NOT (!) equal to 15
Hope it helps
Alex
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.