Solved
Constant Sum Must Total but not mandatory?
Is it possible to custom code a constant sum question so that the responses must total 100%, but it could also be left blank (all rows at 0) as well?
Best answer by Anonymous
Hello @Nadaly
The solution is using custom validation.
In the Constant Sum question add following custom validation
!
In the first condition paste the following math operation
`$e{ 100 - ( q://QID24/ChoiceNumericEntryValue/2 + q://QID24/ChoiceNumericEntryValue/3 ) }`
In second condition(after OR) paste the following math operation
` $e{ 0 - ( q://QID24/ChoiceNumericEntryValue/2 + q://QID24/ChoiceNumericEntryValue/3 ) }`
Also, Select "Enforce Range" with 0 as min value, so that the user cannot answer negative values
Explanation: Suppose you have three rows(A, B, C) then either A= 100-(B+C) OR A=0- (B+C)
View original
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.