With zero JS skills ... seriously, no skills here ... I'm trying to write a function which will fire when value1 = value2. I have specific fields I want to interrogate, but I'll address that once I know how to make the function work with a simple variable comparison.
This generates a "ReferenceError: 'changereport' is undefined. What am I missing?
function changeReport ()
{
value1 = 1
value2 = 1
msg = "123";
if (value1 == value2)
{ Xrm.Page.ui.setFormNotification("This is an INFORMATION notification.", "INFORMATION", msg)
var time = 5000;
//Wait the designated time and then remove
setTimeout(
function () {
Xrm.Page.ui.clearFormNotification(msg);
},
time
);
},
}
*This post is locked for comments