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

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Create an alert when a checkbox is unchecked

(0) ShareShare
ReportReport
Posted on by 608

I need to create an alert asking the user if they really want to uncheck a checkbox on a form.  (The default value of the checkbox is No)  I am new to using JavaScript in CRM - would anyone point me to examples of how this would work, or tutorials on using JavaScript in CRM?  We are using Dynamics 365 online.

Many thanks!

*This post is locked for comments

I have the same question (0)
  • Verified answer
    ashlega Profile Picture
    34,477 on at
    RE: Create an alert when a checkbox is unchecked

    Hi Barbara,

     this may help:

    1. Alerts

      www.magnetismsolutions.com/.../crm-2013-javascript-alerts-and-confirmations

    2. Javascript web resources tutorial:

      www.tutorialspoint.com/.../microsoft_crm_jscript_web_resources.htm

  • Verified answer
    M I Mostafa Profile Picture
    4,257 on at
    RE: Create an alert when a checkbox is unchecked

    Hi Barbara,

    You can use the following Alert functions in your OnLoad JavaScript file:

    Xrm.Page.ui.setFormNotification("Enter your Information Alert here.", "INFORMATION")
    Xrm.Page.ui.setFormNotification("Enter your warning alert here. ", "WARNING")
    Xrm.Page.ui.setFormNotification("Enter your error alert here. ", "ERROR")

    You can also use the alertDialog function in JavaScript. Here is its definition


    Displays a dialog box containing an application-defined message.

    Xrm.Utility.alertDialog(message,onCloseCallback)
    More details here:
    For a guide on how to write Dynamics 365 CRM JavaScript, you can look here:
    and here:
    Please mark "Verify Answer" if you found this response helpful.
    Many thanks

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Community Member Profile Picture

Community Member 2

#1
UllrSki Profile Picture

UllrSki 2

#3
SC-08081331-0 Profile Picture

SC-08081331-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans