web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Javascript to determine if a user Cancels Deactivating a record

(0) ShareShare
ReportReport
Posted on by 2

Hello All~

I am trying to not require a field if a field is blank on Deactivate but I would like to keep the field Required if they Cancel the Deactivation. I can easily remove the requirement when the Deactivate button is pressed but how can I get a callback from when the user clicks Cancel to reset the requirement?

Any suggestions is greatly appreciated.

Thank you

I have the same question (0)
  • Suggested answer
    Bipin D365 Profile Picture
    28,983 Moderator on at
    RE: Javascript to determine if a user Cancels Deactivating a record

    Hi,

    You can replace OOB button with your own custom button. Then do what you want to achieve in your javascript code.

    It is not possible to get callback from OOB deactivate button.

    If found helpful, Please mark my answer verified.

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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 179 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 110

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 61 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans