Hi,
How can we mark field not Required (optional) on BPF using JavaScript ?
I tried below, but it is not working for me.
Hi,
How can we mark field not Required (optional) on BPF using JavaScript ?
I tried below, but it is not working for me.
Hi, here you can find the answer you are looking for:
Set BPF Fields Required/Not Required using javascript - Microsoft Dynamics CRM Forum Community Forum
If this was helpful, please check it as verified to help others finding useful information.
Welcome to this amazing community.
Hi,
Please try below steps:
1. De-select the required checkbox from field of BPF as shown below:
2. Now add logic in script make field required and not required using below syntax:
let formContext=executionContext.getFormContext(); if(formContext != undefined) { let bpfControl=formContext.getControl('header_process_parentcontactid'); if(bpfControl != undefined) { let attribute=bpfControl.getAttribute(); if(attribute != undefined) { attribute.setRequiredLevel("none"); } } }
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,235 Most Valuable Professional
nmaenpaa 101,156