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

CRM 2011 Opportunity entity

$
0
0

Hello-

I created the following script in CRM 2011 to change the required level of a field.  It is not working.  Can anyone assisst me with why thi sis not working?  What am I missing?

function Form_OnSave() {  

}  

function Form_OnLoad() {

function setrequire()

}

function setrequire()

var type = Xrm.Page.getAttribute("cprs_type").getSelectedOption().text;

if (type == "Option5")    

{

then Xrm.Page.getAttribute("cpdc_primarypracticearea").setRequiredLevel("none");

}

else

{

Xrm.Page.getAttribute("cpdc_primarypracticearea").setRequiredLevel("required");

     }

}


Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images