Announcements
Hi there,
I'm building a Model-Driven App and cannot find the "OnDelete" event in form events. There are "OnSave" and "OnLoad," but no "OnDelete." I'd like to instantly determine whether a user can proceed based on some field values on the form. Am I missing something, or are there any alternative ways? Thanks a lot.
Best regards,
Kerr
Hi Kerr
When exactly shoud the check be made? When the user presses the delete button?
Regards,
Roland
As there is no onDelete handler that can be registered, I would try a different approach.
Using the XrmToolBox Ribbon Workbench
Ribbon Workbench 2016 · XrmToolBox
you will be able to add Display Rules to the delete button. I would check the entity fields that need to contain a specific value and only display the delete button if the values are available.
Hi Roland,
That's brilliant, thank you!Regards,
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 377 Most Valuable Professional
11manish 165 Super User 2026 Season 2
MS.Ragavendar 110 Super User 2026 Season 2