Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

ConfiForms - how to set up validations to allow top 5 ranking out of 10 candidates

J M Lim
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 29, 2021

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.

1 answer

1 vote
Alex Medved _ConfiForms_
Community Champion
October 30, 2021

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

validate-unique-options-selected.png

And (all) radio group fields are configured as follows:

validate-unique-options-selected2.png

Will add a validation rule to ensure the "sum" selected is 1+2+3+4+5=15

validate-unique-options-selected3.png

 

!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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events