Notifications
Announcements
No record found.
I want to gray out a form field so the user cannot edit it. I only want to ungray it if some conditions are true, then user can change the field. I am able to lock a field, but I want to gray it out. Thanks.
Hi,
You can use Business Rule to disable field on the form based on condition.
docs.microsoft.com/.../create-business-rules-recommendations-apply-logic-form
that’s like locking the field right? How can I lock it and gray out the field?
Hi bp3378,
In the business rule, you can use 'Lock/Unlock' components to lock/unlock the field based on one condition:
In the form,you can see a lock icon in front of the field label if the conditions are met:
When you hover over the field, the field will be greyed out.
Hello,
You can make your field as "Gray out" or "Ready only" using 2 ways.
1. JavaScript
2. Business Rule
If you want some basic conditions/checks then you can use the Business rule but there are some limitations with the Business rule like it will not do advanced condition checks, for that you can use the JavaScript.
Also don't be confused between Read only and Locked Field.
community.dynamics.com/.../read-only-vs-lock-field
Thank you,
Amit Katariya
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.
Siv Sagar 93 Super User 2025 Season 2
#ManoVerse 74
Martin Dráb 64 Most Valuable Professional