When I Use this function Alert Calling 2 times
function check() { var message = "Bla Bla Bla"; var type = "WARNING"; //INFO, WARNING, ERROR var id = "warning1"; //Notification Id Xrm.Page.ui.clearFormNotification(id); var w1 = Xrm.Page.getAttribute('asd').getValue() if (w1 !== undefined && w1 !== null) { var w1Result = Exist(w1); if (w1Result == false) { Xrm.Page.ui.setFormNotification(message, type, id); Xrm.Page.getAttribute(fieldName).setValue(value); alert(message); } else { Xrm.Page.ui.clearFormNotification(id); } } }
*This post is locked for comments
I have the same question (0)