JavaScript Code for Terminating If All Values are 4, 5, or 6 | XM Community
Skip to main content

 

How do you write JavaScript code for this situation? : 

pTerminate If all values are equal to 4, 5, or 6]

 

 

 

I would appreciate if anyone can help with this. Thanks!

@hachiware10 

You don’t need javascript you can use custom validation for this.


Put your question in separate block.

click add below and select Branch.


Then under the branch, click add a new element here option and select End of survey Module.
 

Customize the setting of end of survey module. and click OK

 

Then click on Add a condition and apply terminate logic.
 

But make sure your scale code should be in sequence for that logic.


If your scale recodes are not in sequence then you can apply logic like this.

 

 


Leave a Reply