Ui policy mandatory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2023 07:00 AM
Hi, I'm trying to make the close code field mandatory in the workspace, I did it through ui policy, but it doesn't work for me, I attach what I did
And this state condition will be cancelld
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2023 07:08 AM
are you sure the field is present in workspace view?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2023 07:12 AM
Yes, it didn't show me an asterisk in red to indicate that it will be a mandatory field, which means I can save without these fields and vice versa, I need it to be mandatory

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2023 09:23 AM
@yardenKrispel Here is the reason why your UI Policy is not working.
There are two fields present on the incident table
1. State
2. Incident state
You are applying UI Policy on Incident state field where is testing it on the State field. Update your UI Policy as follows and verify the fix by setting State field to Canceled.
Please mark this answer helpful and correct if it addresses your issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2023 07:34 AM
Hello @yardenKrispel ,
Please uncheck the Global checkbox from your UI Policy and then View field will be visible. In that View field select Workspace view then you can see the Resolution Code field as mandatory.
Please mark my answer as correct and helpful if it resolves your issue.
Regards,
Namrata