Josh Godfrey
12/23/2021, 4:55 PMN/error
module isn't supported in UE script types. I've tried playing around with N/ui/message
and N/ui/dialog
but also having a hard time getting anything to fire beforeSubmit.
Scenario:
Check for duplicate records on a custom record type; if a duplicate record is found; throw error.
function showError() {
let myCustomError = error.create({
name: 'DUPLICATE_ERROR',
message: "A vaccination report record already exists for this employee.",
notifyOff: false
});
log.error('Error: ' + myCustomError.name, myCustomError.message);
throw myCustomError;
}
The problem is that this error message is hard to follow for some of my end users. I'm hoping to either clean up the body of the error message. Or really simplify it down to a one line error message.battk
12/23/2021, 4:58 PMbattk
12/23/2021, 5:00 PMJosh Godfrey
12/23/2021, 5:02 PMbattk
12/23/2021, 5:13 PM