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

Announcements

News and Announcements icon
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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

#2
GJones Profile Picture

GJones 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans