- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-27-2022 02:39 AM
I have a field on a form. I have created a UI Policy to set it to read-only when the field is not-empty.
When I impersonate a user and test it, the field is read-only all the time whether empty or not. Am I missing something here?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-27-2022 02:43 AM
Hi,
Inactivate UI policy and check if that field is editable for that user. If that is the case then ACL is restricting edit access for that user.
If field is editable after inactivating UI policy then make sure that onLoad checkbox is checked in UI policy.
Let me know if you have any further queries.
Please mark this as Correct or Helpful if it helps.
Thanks and Regards,
Abhijit
Community Rising Star 2022
Regards,
Abhijit
ServiceNow MVP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-27-2022 02:43 AM
Hi,
Inactivate UI policy and check if that field is editable for that user. If that is the case then ACL is restricting edit access for that user.
If field is editable after inactivating UI policy then make sure that onLoad checkbox is checked in UI policy.
Let me know if you have any further queries.
Please mark this as Correct or Helpful if it helps.
Thanks and Regards,
Abhijit
Community Rising Star 2022
Regards,
Abhijit
ServiceNow MVP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-27-2022 03:40 AM
hi,
first step- set condition ->'field name'= is not empty
second step- write script
g_form.setReadOnly('field_name',true);
Regards,
Poornima