Quantcast
Channel: CRM Development forum
Viewing all articles
Browse latest Browse all 8223

Changing the value of an option set based on the value of another option set

$
0
0

Hello all,

I'm a novice when it comes to JScript coding. 

The requirement is that when a user changes the label of the "new_priority" option set field on the Opportunity form to "high" or 100000002, then the label of the "new_pipeline" option set field on the same form change to "qualification" or 100000001. Thus I have the following code on the OnChange event of the "new_pipeline" field:

function SetValue()
{
Xrm.Page.getAttribute(new_priority).getValue();
if (new_priority == (100000002)
{
Xrm.Page.getAttribute(new_pipeline).setValue(100000001);
}
}

Looking forward to your feedback.

Thanks 


Viewing all articles
Browse latest Browse all 8223

Trending Articles



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