If I want to validate in a before submit of a user...
# suitescript
a
If I want to validate in a before submit of a user event, and based on certain conditions not allow saving, is throwing an error my only option? I don't want to throw because that sends an email that something failed. I simply want to not allow saving with a nice error message why it failed
s
Something did fail, though. Regardless of how nice the message is.
b
You could use a client script as an alternative
a
@Sandii Correct, but I am telling the user you didn't enter this field, please try again. I don't want an admin to receive an email that this script is failing
I could do front end validation that is true
But then I could run into permissions issues
b
What kind of permission issues?
a
Which I could use a suitelet for, just wondering if there is a quick way to adjust my client script
The user might not have the proper roles to do the searches needed by my validation
s
If you want the user to stop and not get a fail from UE, client is pretty much the best option
a
Okay. Thanks everyone