Sections in this category

Add Alert Notification Banner to a Form

Event Handlers will need to be added to custom forms in order for Alert notification banners to display.

2. 2 - Open the Form

3. 3 - Click ‘Form Properties’

4. 4 - Verify that the CrmUiUtility library is present. 

Libraries are listed in under the Form Libraries section of the page. Normally the library will already be present, but if it is not you can add it with the Add button. This will open a new window where you can search for it. 

5. 5 - Add two event handlers.

5.1. 5.1 - Click "+ Add" under the Event Handlers section.

5.2. 5.2 - Enter "FormLoad" as the Function and select the two check boxes.

Make sure that Library is set to cobalt_/Scripts/CrmUiUtility.js. 

5.3. 5.3 - Click OK

5.4. 5.4 Add a second Event Handler with "DebugForm" as the Function.

Note: This Event Handler may already exist and will not need to be added a second time.

6. 6 - Save and Publish the form customizations. If you are making changes to an on-prem environment, stop here. If you are making changes to an online environment, continue. 

9. 9 - Click on Forms.

10. 10 - Select the Entity

11. 11 - Hover over the Form and click the edit pen icon.

12. 12 - Click the Events tab.

13. 13 - Expand the On Load Event Handlers and verify the two Handlers are displaying.

14. 14 - Save and Publish the form within the app form designer.

The Alert notification banner will now display on the custom form.

Was this article helpful?

0 out of 0 found this helpful