The below script was created to remind the end user to insert an account name onLoad and also respond "Entry successful!" when an account name has been entered. The problem is that the script will display the banner throughout the process. What I need is to know how to remove the banner once the account name is entered successfully. What can I add to my script to display for a certain amount of time?


function onLoad() {
if(Xrm.Page.getAttribute("name").getValue() == null){
Xrm.Page.ui.setFormNotification("Please enter account name!", "INFO", "1");
}
}
function onChange() {
if (Xrm.Page.getAttribute("name").getValue() == null){
Xrm.page.ui.setFormNotification("Entry successful!", "INFO", "1");
}
}
*This post is locked for comments
I have the same question (0)