Forcing a Constant Sum question to be less then 24 hours | XM Community
Question

Forcing a Constant Sum question to be less then 24 hours

  • 8 April 2019
  • 1 reply
  • 3 views

Userlevel 1
I can't figure out how to make an error message come up if the total is larger then 24 hours for this question. Can anybody help me?

!

1 reply

Userlevel 7
Badge +27
Let's say the QID of your question is QID1. Then add Custom Validation so that "Live TV as it airs" is less than or equal to:
```
$e{ 24 - q://QID1/ChoiceNumericEntryValue/2 - q://QID1/ChoiceNumericEntryValue/3 - q://QID1/ChoiceNumericEntryValue/4 - q://QID1/ChoiceNumericEntryValue/5 }
```

Leave a Reply