Before_cancel - Run custom script

Need to run some custom script before cancelling the records, whats the recommended practice to do the this…

Server-side is the best choice for adding custom logic before canceling records because it ensures security and applies rules for all users, even for API calls or automated tasks. It cannot be bypassed, which keeps data safe and consistent. Client-side scripts are easier for users and good for showing warnings or messages, but they can be disabled or ignored. For a strong solution, use server-side checks and add client-side scripts only to improve the user experience.

1 Like

Thanks for the support.