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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
ParthPatel249 62
11manish 48 Super User 2026 Season 2
André Arnaud de Cal... 40 Super User 2026 Season 2