Tuesday, March 26, 2024

Dynamics 365 CE: Set and clear notification on a field using JavaScript

The following JavaScript code can be used to set and clear notification on a field.

formContext.getControl("attributename").setNotification("Message");                            
formContext.getControl("attributename").clearNotification();


formContext.ui.setFormNotification("Your message", "WARNING", "MessageID001");
formContext.ui.clearFormNotification("MessageID001");

Regards,

Arun S Keerthi

No comments:

Post a Comment