How can we allow just record edit through UI(not c...
# suitescript
a
How can we allow just record edit through UI(not create, not delete)?
s
Use a workflow to restrict creating & deleting - filter on the record type
a
Thanks Any other solution?
s
What have you tried?
s
You could use a UserEvent on the record in beforeLoad and check the context and do whatever you want it to on CREATE or DELETE
a
@Sandii how can I show an error and stop loading record for example when user wants to delete the record
s
You need to play with but probably need beforeSubmit and check the
context.type
and use
throw
to throw an error instead