When variable empty in MRVS at Task Level, Abort task submission.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-04-2023 02:44 AM
At task level, how to abort form submission, when a few of the variables are empty in Multi Row variable set?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-04-2023 06:55 AM
@Ankur Bawiskar Yes variable name is correct..
I just tried giving an info message after that statement
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-04-2023 04:19 AM
Here is the catalog client below:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-04-2023 04:45 AM
cant see anything below as you mentioned
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-04-2023 05:13 AM
See the below url:
It will help you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-04-2023 05:01 AM - edited ‎08-04-2023 05:02 AM
@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!!