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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

"Confirm" popup on field change

(0) ShareShare
ReportReport
Posted on by 195

Hi all,

I have created a new "checkbox" field.

I wan't CRM to popup with some kind of "Are you sure?" field, since this checkbox will initiate an email flow.

Then if they press "OK", it will tick, and if you press "cancel" it will remain unticked?

How do I create this kind of "confirm" popup?

Thanks!

*This post is locked for comments

I have the same question (0)
  • Azillion Profile Picture
    195 on at

    I mean ofcourse: I want CRM to popup with some kind of "Are you sure?" WARNING, since this checkbox will initiate an email flow.

  • Suggested answer
    Piotr Kerner Profile Picture
    285 on at

    Hi,

    To open CRM confirm dialog you need to use javascript function: Xrm.Utility.confirmDialog (more here:

    msdn.microsoft.com/.../jj602956.aspx)

    On Yes and No functions you should update your checkbox field accordingly.

    The question is when do you want to display this message?

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at

    Hi Azillion.

    Please have a look below references .

    msdn.microsoft.com/.../jj602956.aspx

    arunpotti.wordpress.com/.../alert-dialog-and-confirm-dialog-in-mscrm-2013-using-javascript

  • Suggested answer
    Mahendar Pal Profile Picture
    45,095 on at

    Hi,

    you can write something like below:

    var Response = confirm(“Are you sure?”); //prompt message

    if (Response != true) {

    Xrm.Page.getAttribute("fieldname").setValue(true);

    }

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 > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans