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

Field notification type is defaulting to Error

$
0
0

I am working on my first bit of JavaScript in CRM.  The alert is showing on the field as it should, but it is an error-type when I only want a notification.  I want to alert the users without forcing them to re-check the box.

This is the code I'm using:

function checkFlag()

 var FType = Xrm.Page.ui.controls.get("new_addressvalidationissue").getAttribute().getValue();
 if (FType == false)
 {  
  Xrm.Page.getControl("new_addressvalidationissue").setNotification("You have reset the Address Validation Flag.  Are you sure there is no need to validate the address?","INFO");
  }
  }

 But on the form it results in an error notification:

What have I done wrong?

Thanks in advance!


Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images