Discussions
User Event Script to stop Delete action
Hi
Is it possible to stop a Delete action by using a User Event script?
E.g. Prevent a invoice record to be deleted if a certain field is set.
The reason why I want to use an User Event script rather than a Client script is because I also use web services and I want the same rules to apply regardless if someone tries to delete the record using the UI or web services.
I've tried things like creating a User Event script that triggers on BeforeSubmit and then throws an exception using nlapiCreateError but it doesn't seem to have any effect.