How do I add multiple validations to a Constant Sum question? | XM Community
Skip to main content
I want to add multiple validations to a single constant sum question - I assume I have to use a 'custom validation' but not sure how to do so...



The validations I want are:



1. The Constant Sum needs to add up to 100

2. Answers to each question must be a multiple of 5 from 0 to 100



Any help with how to do this would be greatly appreciated!
The way the custom validation is set up, you kind of get one or the other from the looks of it.



To get "must total 100" is easy. There is a check box for it:

!



To get the "multiples of 5" rule going, you can set up a custom validation so that each line has to match a Regex condition. All this says is, "make sure that this line item ends with either a 0 or a 5":

!



The problem is, custom validation won't allow conditions for the sum total 😞

Leave a Reply