Notifications
Announcements
No record found.
I am trying to write javascript code for popup button
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/.
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
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Tom_Gioielli 171 Super User 2025 Season 2
#ManoVerse 83
Jimmy Passeti 50 Most Valuable Professional