Hi,
New to / attempting to learn JavaScript and I've added some code to the OnChange of the Phone Field.
function warningOnChange()
{ Xrm.Page.ui.setFormNotification("Please ensure the value entered in the Phone Field is correct.", "WARNING", "1");
}
I'm getting a script error when the Account Form loads. I've tried enabling legacy Form Rendering but this doesn't work either. I assume I'm doing something wrong. As you can see, the code appears to have worked, as the notification is appearing in the background: