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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
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

I have the same question (0)
  • Martinsonn Profile Picture
    20 on at

    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/.

  • Suggested answer
    CRMJetty Profile Picture
    3,514 on at

    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

  • Suggested answer
    XM-22040801-0 Profile Picture
    11 on at

    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` });
    }

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 180 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 123

#3
CU11031447-0 Profile Picture

CU11031447-0 100

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans