When variable empty in MRVS at Task Level, Abort task submission.

Mishu
Tera Expert

At task level, how to abort form submission, when a few of the variables are empty in Multi Row variable set?

14 REPLIES 14

@Ankur Bawiskar Yes variable name is correct..
I just tried giving an info message after that statement

Here is the catalog client below:

Regards,Shamma Negi

cant see anything  below as you mentioned

Arun_S1
Tera Guru
Tera Guru

@Mishu Please try the below.

 

 

(function executeRule(current, previous /*null when async*/) {

	// Add your code here
	var parsedData = JSON.parse(current.variables.u_scrap_details);
	for(i=0;i<parsedData.length;i++){
 if(parsedData[i].u_field_name==''){
 current.setAbortAction(true);
 break;
}
}

})(current, previous);

 

 

Please mark the appropriate response as correct answer and helpful.

Thanks!!