this is show how to use the two option set customizations on dynamic crm 2011
function businessregion()
{
var detailamt= Xrm.Page.getAttribute("new_businessregion").getValue();
if( detailamt==1)
{
Xrm.Page.ui.controls.get("new_state").setDisabled(true);
Xrm.Page.ui.controls.get("new_ther").setDisabled(false);
}
else
{
Xrm.Page.ui.controls.get("new_state").setDisabled(false);
Xrm.Page.ui.controls.get("new_ther").setDisabled(true);
}
}
function businessregion()
{
var detailamt= Xrm.Page.getAttribute("new_businessregion").getValue();
if( detailamt==1)
{
Xrm.Page.ui.controls.get("new_state").setDisabled(true);
Xrm.Page.ui.controls.get("new_ther").setDisabled(false);
}
else
{
Xrm.Page.ui.controls.get("new_state").setDisabled(false);
Xrm.Page.ui.controls.get("new_ther").setDisabled(true);
}
}
No comments:
Post a Comment