Skip to main content

Notifications

Announcements

No record found.

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 604

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

  • Verified answer
    M I Mostafa Profile Picture
    M I Mostafa 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
  • Verified answer
    ashlega Profile Picture
    ashlega 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

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,307 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans