Monday, October 7, 2024

Day 10 - Using JavaScript to Set Field Requirements Dynamically - JavaScript in MSCRM/Dataverse

 In this Blog, we will see how to Set Field Requirements Dynamically - JavaScript in MSCRM/Dataverse



if (formContext.getAttribute("bosch_booleanfield").getValue() == true) {
        formContext.getAttribute("bosch_enabledisablefield").setRequiredLevel("none");
    }
    else if (formContext.getAttribute("bosch_booleanfield").getValue() == false) {
        formContext.getAttribute("bosch_enabledisablefield").setRequiredLevel("required");
   }

1 comment:

  1. CRM Dynamics' smooth connection with other Microsoft applications is one of its best features. It facilitates easy communication between marketing and sales.
    crm dynamics
    dynamics crm 365

    ReplyDelete

How to Remove Unmanged layers in Microsoft Dynamics CRM/Dataverse

 Issues Faced : When we need to create a new field or update a failed, we are having an different environment we are create in that and move...