If we want to check a field and based on that stop...
# suitescript
a
If we want to check a field and based on that stop user from deleting a record(client side) how we can do that?
b
wrong approach, do it serverside in the before submit user event
a
when we are in edit mode
there is an action menu and under that delete button
how can I check that on before submit?
type is delete?
@battk and if yes how we can show an error to the user?
lists methods of restricting user events to run on event types
an error thrown from a user event script shows an error to the user
a
@battk it will not show the error to the user
I'm using throw new Error()
it will show it but in a white page
right?
b
usually
probably has a back button and whatever message you put in the error constructor
a
many thanks