Hi,
1. I create a workflow to change a field value like "field06" according to the change of "field1"
work flow Action: if field1 changed, set the value of field1 to field6.
2. I create a js and register to on change event of field6.
function OnChangeForField6Test01()
{
var deantestfield06 = Xrm.Page.getAttribute("deantestfield06").getValue();
if (deantestfield06 == 88)
{
Xrm.Page.ui.controls.get("deanfield07").setDisabled(true);
Xrm.Page.ui.controls.get("deantestfield05").setDisabled(true);
Xrm.Page.ui.controls.get("deanlookup01").setDisabled(true);
//
}
else
{
Xrm.Page.getControl("deanfield07").setDisabled(false);
Xrm.Page.getControl("deantestfield05").setDisabled(false);
Xrm.Page.getControl("deanlookup01").setDisabled(false);
}
}
Issue:
deanfield05 is one line text, it could be disabled and enabled properly.
deanfield07 is multiple lines text, could not be enabled.
deanlookup01 is lookup field, could not be enabled.
I have to refresh the page, then deanfield07 and deanlookup01 will be enabled.
anyone could help on it?
Many Many thanks!





