Dear All,
Please find the below code to disable field
ON select of Row
function (executionContext) {
// debugger;
var formContext = executionContext.getFormContext();
formContext.getData().getEntity().attributes.forEach(function (attribute) {
if (attribute.getName() === "new_status"//FieldName
&& attribute.getValue() ==
NameSpace.GlobalVariables.ChangeDetailStatus.Approved) {
attribute.controls.get(0).setDisabled(true);
}
});
}
No comments:
Post a Comment