Announcements
Hi all,
Hope this is the correct place to post this.
I need to get a message alert on a form when a certain field equals yes. This field is a yes/no field with values 0 and 1.
So basically when the field is set to yes then the message needs to appear for the user.
I have tried implementing some Javascript onto the field properties as an OnChange event but this does not seem to work. Here is the JS I used -
function WarningMessage() {
}
Is there a way I can do this without Javascript? Otherwise please let me know if I might be doing something wrong.
Thank you for any help.
for notification
formContext.ui.setFormNotification("Text to notify","WARNING","id");
Xrm.Utility.alertDialog("message", null);
Regards,
Tamilarasu Arunachalam
Hi,
You should be using SetFormNotification in CRM Dynamics to show warnings on the form.
Business Rule can Validate data and show error messages not sure if this can solve your requirement.
If you want to do it with Javascript, I think you should follow Xrm object model design. It is an unsupport way to access Dom directly. There is an openAlertDialog function to show alert.
André Arnaud de Cal... 291,359 Super User 2024 Season 2
Martin Dráb 230,370 Most Valuable Professional
nmaenpaa 101,156