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