Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Javascript to determine if a user Cancels Deactivating a record

Posted on by 252

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

  • Suggested answer
    Bipin D365 Profile Picture
    Bipin D365 28,964 Super User 2024 Season 1 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans