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

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 55831

Trending Articles



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