Hello,
I am trying a standard example,if customertypecode is 11 (vendor) show vendorsection else hide it.
showhidesection={showhidevendorsection:function()
{ var customerType=Xrm.Page.getAttribute("customertypecode".getValue();
var vendorsection =Xrm.Page.getControl ("moc_vendorcode").getParent();
if (customertype==11)
{vendorsection.setvisible(true);}
else{vendorsection.setvisible(false);
}}}
In above code in this line - if (customertype==11), instead of writing 11 how can I get the selected value from option list by end user?
*This post is locked for comments
I have the same question (0)