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.
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.
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
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.
that’s like locking the field right? How can I lock it and gray out the field?
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
André Arnaud de Cal... 291,735 Super User 2024 Season 2
Martin Dráb 230,466 Most Valuable Professional
nmaenpaa 101,156