Skip to main content
Microsoft Dynamics GP forum

Accessing "BeforeModalDialog" event in the cash receipt window

editSubscribe (0) ShareShare
Posted on by 15


I'm trying to suppress the "Are you sure you want to delete" popup when deleting a cash receipt.  I'm able to attach the the "BeforeModalDialog" and suppress it if the actual button is pressed in the Cash Receipt window.  However, our application is calling the DeleteButton.RunValidate() method to delete the cash receipt based on certain criteria and it seems that the "BeforeModalDialog" event is not being triggered in this case.  Does anyone have any ideas about this or alternative ways to suppress the popup when deleting the cash receipt through Dexterity?

Thank you very much,

Mike LeClair

Helpful resources

Quick Links

What Motivates a Super User?

We know many of you visit the Dynamics 365 Community and Power Platform…

Demystifying Copilot with Georg Glantschnig…

Industry experts answer burning questions directly from our amazing Community…

Setting Up Knowledge Sources for Copilot…

Look at how configuring a comprehensive knowledge base is crucial…


Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,068 Super User

Martin Dráb Profile Picture

Martin Dráb 222,591 Super User

nmaenpaa Profile Picture

nmaenpaa 101,138

Product updates

Dynamics 365 release plans