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

Notification Dynamics 365

$
0
0

Hi, 

I am trying to set up a field based notification on a contact form.

e.g. I have a field named Membership, which is option set with three options. I would like a notification when i choose one of the options.

I have tried the below code but it shows a notification regardless of the option i choose. 

function setMembershipNotification() {  
    var membership = Xrm.Page.getAttribute("spl_membership").getValue();  

    if (!membership) {
Xrm.Page.ui.setFormNotification("You are a Executive Memeber", "INFO", "928,350,002");

else {
Xrm.Page.ui.clearFormNotification('928,350,002');
}
}

Any suggestions on how i might be able to do this.

Thanks

Damesh


Viewing all articles
Browse latest Browse all 46379

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>