Notifications
Announcements
No record found.
Hi,
How can we mark field not Required (optional) on BPF using JavaScript ?
I tried below, but it is not working for me.
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"); } } }
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.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Tom_Gioielli 74 Super User 2025 Season 2
Daniyal Khaleel 32 Most Valuable Professional
Gerardo RenterÃa Ga... 31 Most Valuable Professional