Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

How to Remove Notification Banner

$
0
0

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");
}
}


Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images