When I toggle between the different Status (Draft, Approved, Rejected, etc) I want the value to be clear. For instance if I change the value from Draft to Approved, the workflow sets some field values. If I change to Rejected it will also set the field values, however if I toggle back to Approved I still see the value. I think I need to have javascript to clear the value onChange?
function status(fieldName) {
if (Xrm.Page.getAttribute(fieldName).getValue() == 1 ) {
Xrm.Page.getControl(arg).clearOptions()
}
else if (Xrm.Page.getAttribute(fieldName).getValue() == 2 ){
Xrm.Page.getControl(arg).clearOptions()}
}
*This post is locked for comments
I have the same question (0)