Skip to main content

Notifications

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

How to get popup button event mscrm javascript

(0) ShareShare
ReportReport
Posted on by 5

I am trying to write javascript code  for popup button 

crmCapture.PNG

  • Suggested answer
    XM-22040801-0 Profile Picture
    XM-22040801-0 11 on at
    RE: How to get popup button event mscrm javascript

    Hello,

    To complete the answser of Maulik Shah , you can override the button name.

    For example, to reproduce the popup you have posted, you can do this:

    const result = await Xrm.Navigation.openConfirmDialog(
        {
            title: "Reactivate Case",
            text: "The action reactivates a resolved or canceled case. Do you want to continue ?",
            confirmButtonLabel: "Reactivate",
            cancelButtonLabel: "Cancel",
        }
    );
    
    if (result.confirmed) {
        Xrm.Navigation.openAlertDialog({ text: `Confirmed` });
    } else {
        Xrm.Navigation.openAlertDialog({ text: `Cancelled` });
    }

  • Suggested answer
    CRMJetty Profile Picture
    CRMJetty 3,508 on at
    RE: How to get popup button event mscrm javascript

    Hello Johnmy,

    You can display a confirmation dialog box containing a message and two buttons by using openConfirmDialog.

    The following method displays a confirmation dialog:

    Xrm.Navigation.openConfirmDialog(confirmStrings,confirmOptions).then(successCallback,errorCallback);

    To get popup button you can refer this Blog

  • Martinsonn Profile Picture
    Martinsonn 20 on at
    RE: How to get popup button event mscrm javascript

    For seasoned online store owners, if you're already satisfied with how your eCommerce business is progressing, you can certainly get even better results when you harness the potential of popups. Did you know that you can create popups without using any code? Then for this, I recommend studying this article https://claspo.io/blog/pop-up-surveys-everything-you-need-to-know/.

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

News and Announcements

Announcing Category Subscriptions!

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 Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans