Hi
Hope someone can help. I seem to be going round in circles
I have created a web resource file with the following JavaScript.
function setConsentPreferenceNotification() {
var consentpreferencegiven = Xrm.Page.getAttribute("acg_consentpreferencegiven").getValue();
if (consentpreferencegiven == "805270001") {
Xrm.Page.ui.setFormNotification("YOu must get Consent", "INFO", "805270001");
}
else {
Xrm.Page.ui.clearFormNotification('805270000');
}
}
Ive created a field Yes/No options set and named it ConsentPreferenceGiven. Set default value to NO.
Then went to form properties and added this form to Form Libraries and Event Handler (named function to ConsentPreferenceNotification)
But i keep getting an error.
Have i missed out a step or written the code wrong?
*This post is locked for comments