This project has moved and is read-only. For the latest updates, please go here.

Installation & Usage

  1. Download and install the unmanaged solution (recommended), or download the source files from other downloads, and create the 4 required web resources manually using your own publisher prefix and naming style (not recommended as there are hardcoded references in the js and css files).
  2. Make sure to publish all customizations if installing the unmanaged solution, or creating the web resources manually.
  3. Create a new JavaScript web resource or use an existing web resource to create your custom functions which will call the notify.js functions.
  4. Add a reference to the notify.js web resource on your form or view (the other required files are loaded automatically).
    • For forms, this is simply added through the form properties.
    • For views, add a "JavaScript Function Action" to the "Command Actions" for your button command, calling the notify.js web resource, where the function is "isNaN" (without quotes). Using the Ribbon Workbench to edit the command is recommended.
      • actions.png
  5. Add a reference to your custom JavaScript web resource where you're making the calls to notify.js. This should be added after the reference to notify.js.
  6. Call your custom function from your JavaScript library, e.g. from the command bar button, or from the form onload event.

Supported Functions


Use this method to add or update a notification in the custom notification bar on a form or view. If the unique ID matches an existing notification, that notification will be updated, otherwise a new notification will slide down nicely from the top.

Notify.add(message, level, uniqueId, buttons, durationSeconds);



  • Type: String. The text of the message.
"Processing, please wait..."


  • Type: String. The level of the message. The level defines which icon will be displayed beside the message.
    • ERROR: notify_error.png Notification will display an error icon.
    • WARNING: notify_warning.png Notification will display a warning icon.
    • INFO: notify_info.png Notification will display an info icon.
    • SUCCESS: notify_success.png Notification will display a green tick (success) icon.
    • QUESTION: notify_question.png Notification will display a question mark icon.
    • LOADING: notify_load.gif Notification will display a CRM loading spinner.


  • Type: String. A unique identifier for the message used with Notify.remove to remove the notification, and to allow you to update the same notification without it sliding down again.


  • Type: Array of Objects. Optionally, specify one or more buttons or hyperlinks to display beside the message. This can be a useful way of displaying a link to another record or system in an unobtrusive way. The buttons/links will be added to the immediate right of the message text, and will display in the order that you add them.
    { type: "button", text: "Create Sale", callback: createSaleFunction },
    { type: "link", text: "Not now", callback: function () { Notify.remove("sale"); } }
  • Each button Object should contain the following properties:
    • type (String): The type of button, must be either "button", or "link". If not specified, this will default to "button".
    • text (String): The text to display on the button, or as the hyperlink text.
    • callback (function): A custom function to call when the button or link is clicked. This function accepts no input parameters, and can be declared inline as a dynamic function.


  • Type: Number. Optionally, specify how long the notification should be displayed (in seconds) before it automatically slides up and disappears. If null or undefined, the notification will display until it is removed either by using Notify.remove with the uniqueId, or if the user manually dismisses the notification.
  • Note: duration should always be specified when displaying notifications on views. While it's not required, if the view notifications are not dismissed automatically, they may remain visible while navigating between views/forms. E.g. it's fine to display a loading notification with no duration, as long as it's removed once processing is complete.


Use this method to remove notifications from the custom notification bar on a form or view. If the unique ID matches an existing notification, that notification will slide up and be removed. If no unique ID is specified, all notifications will slide up and the custom notification bar will be hidden.




  • Type: String. The unique identifier for an existing message to remove. If this is null or undefined, all notifications will be removed.

Last edited Oct 23, 2016 at 1:03 AM by Liger, version 13