Saturday, February 27, 2021

Editable Grid - Read Only Field MSCRM

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

Create - Pre Operation - Dataverse Accelerator

  Introduction: In this Blog, we will see how to Create Pre-Operation Plugin in Dataverse Accelerator Validations: In Contact if user select...