Hi Guys,
I have to apply a condition in for each loop in the action center so I select the event in the display as shown in the image
and then write the logic in the logic section as a type event.
let proceed = true;
for (let i = 0; i < data[‘in_dt’].length; i++) {
let remark = data[‘in_dt’][i][‘Remark’];
alert(data[‘in_dt’][i][‘Remark’])
if (!(remark.includes(“SO”) || remark.includes(“chassis”))) {
proceed = false;
alert('Error in row ’ + (i + 1));
// Exit the loop if any condition is not met
} else {
alert('Condition met in row ’ + (i + 1));
}
}
if (proceed) {
alert(‘All conditions met, you can now submit’);
return true;
} else {
alert(‘all condition not met’);
handleWithoutError();
}
Logic is working fine but I can’t click the Submit button after that.
@Harika_Mudiam
@sharon.palawandram
@Arvind_Kumar1

