Hi All,
I have a constant sum question. I want to add a validation here that SUM OF A,B and C MUST BE AT LEAST 50% IN COMBINATION, ELSE TERMINATE. Can we do this with JS?
Hi dipeshsingh
This thread might help. Please have a look.
PS: The above attached case is very similar to yours, you might do some changes in the provided custom code and you'll get the solution.
dipeshsingh,
If the question is the last in the block, then you can perform the calculation and terminate logic in the survey flow (replace QIDxx with actual question id):
Set Embedded Data:
ABDsum = $e{ q://QIDxx/ChoiceNumericEntryValue/1 + q://QIDxx/ChoiceNumericEntryValue/2 + q://QIDxx/ChoiceNumericEntryValue/4 }
Branch:
If Embedded Data ABDsum Is Less Than 50
End of Survey
Hi TomG
My question was not in the end of block by I did a similar thing. I created a additional text entry question to validate and terminate. BTW thanks :)
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.