- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2022 01:55 AM - edited 11-23-2022 01:56 AM
Hello, I am trying to make fields attestation and attestation group readable only when the state is attested. However, when I applied UI policy is not working. The only thing that seems to be working is the data policy(used as UI policy on clients). Can someone help me understand what is the reason that the UI policy is not working for my case to make the fields readable.
Below I have attached a screenshot of both of them.
UI policy:
Data policy:
I also tried to investigate online and if the issues found there would be similar with mine. So far I have no idea why that UI policy is not working. Only thing I realised is when I used client script it did not work as well.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2022 02:54 AM
Hi, I recommend to check with the UI Policy order. The fields are mentioned under UI Policy action may used some other UI policies and order will be the same.
Suresh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2022 03:35 AM
Hello,
Just to be sure the fields are not getting read only on list or form? If it is list view UI policy does not work in list view.
If it is form view check if there are any other UI policy on the same field? also try to make the order of the UI policy 1000.
Please mark my answer as correct based on Impact.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2022 02:36 AM
is data policy required? It's only required when there is API integration
Try creating the UI policy again as fresh.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2022 04:34 AM
No data policy is not required but it solved the solution for now. What bothers me is why the UI policy does not work. I mean I would prefer to use UI policy rather than data policy as a best practice to make a field readable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2022 04:45 AM
Ideally UI policy should work fine.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2022 02:54 AM
Hi, I recommend to check with the UI Policy order. The fields are mentioned under UI Policy action may used some other UI policies and order will be the same.
Suresh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2022 03:35 AM
Hello,
Just to be sure the fields are not getting read only on list or form? If it is list view UI policy does not work in list view.
If it is form view check if there are any other UI policy on the same field? also try to make the order of the UI policy 1000.
Please mark my answer as correct based on Impact.