Javascipt to set the field into mandatory field.
Javascript Eg.
function setResponsible() {
//Status act as picklist to trigger the field to become mandatory
var status = Xrm.Page.getAttribute("vw_status").getValue();
//setRequiredLevel to set as mandatory or other (none, required and recommended)
if (status == 2) { Xrm.Page.getAttribute("vw_staffresponsibleid").setRequiredLevel("required"); }
else { Xrm.Page.getAttribute("vw_staffresponsibleid").setRequiredLevel("none"); }
}
End.
CRM 2011 Set Field Into Mandatory Field
Posted by Unknown at 6/28/2012 04:50:00 pm
Labels: CRM 2011
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment