JavaScript Code for Terminating If All Values are 4, 5, or 6 | XM Community
Solved

JavaScript Code for Terminating If All Values are 4, 5, or 6

  • 25 December 2023
  • 3 replies
  • 38 views

Badge +3

 

How do you write JavaScript code for this situation? : 

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

 

 

 

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

icon

Best answer by ArunDubey 26 December 2023, 08:03

View original

3 replies

Userlevel 7
Badge +36

@hachiware10 

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

Userlevel 7
Badge +33

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.

Userlevel 7
Badge +33

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

 

 

Leave a Reply