Loop through a variable in MRVS to check the condition

Karan31
Tera Contributor

I have a variable in a form within multi row variable set.

The variable is a YES/NO field. I wanted to check for every row added the if at any row "no" is selected on the variable the form should not be submitted

16 REPLIES 16

paste the script which you  modified and tested on your client instance ?

it worked harsh , just one little thing can we also alert that at which row the variable is set to no ?

 

Glad it helped. 

it will be complicated, because the condition is checking for all rows in loop and based on that it is giving you an alert. 

 

Kindly mark it as correct and  helpful.

 

i am trying to apply the same script to two variable sets , how can i do that. do i need separate on submit?

 

one on submit client script would work also, give a try. 

 

If my answer helped you, mark it as correct and  helpful.