Monday, March 25, 2024

Dynamics 365 CE: Set a field visible using JavaScript

The following JavaScript code can be used to make a field Visible in Dynamics 365 app. 


function showField(executionContext){
    var formContext = executionContext.getFormContext();

    var attributename = formContext.getAttribute("attributename");

    if (attributename == true){
        formContext.getControl("attributename1").setVisible(false);
    }

}

No comments:

Post a Comment