UI Builder For UI Policy

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2022 04:18 AM
Hi,
Does UI Policy in Form also reflect in UI Builder.
I tried doing client script in backend form and its working.
But for UI Policy it doesn't seem to work in UI Builder.
Does anyone has insights on this?
Thanks,
Tads
- Labels:
-
Now Experience UI Framework
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2022 04:34 AM
Hi Tadz,
UI policy does not work in UI builder. You will have to write logic in UI builder itself to make field read only , visible or mandatory.
Please mark correct if helpful.
Regards,
Vaibhav Dane
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2022 04:35 AM
You can checkout this
https://docs.servicenow.com/bundle/sandiego-application-development/page/administer/ui-builder/concept/work-events.html

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2022 09:41 AM
I just tested a UI policy on the incident table that hides the short description based on the channel selected and it worked in both the core ui and on the oob record page in the service operations workspace.
What does your UI policy do? If you're using a script it may be pretty limited but I think it should be able to show/hide fields and make them mandatory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2022 03:06 PM
My scenario where it doesn't quite work
I have a competency table. On the table, I have a competency type. I have 2 UI policies. On the form, I have competency type and fields 1-4 that both competency types share.
UI policy 1:
If competency type 1 is selected, fields 5-9 are shown where 2 of them are mandatory. Onload and reverse is false is checked.
UI policy 2:
If competency type 2 is selected, fields 10-13 are shown where 2 of them are mandatory. Onload and reverse is false is checked.
On the List page in UI builder, I have broken up the table. In the list, I have:
Type1 Competency - shows only Type 1 competency
Type2 Competency - shows only Type 2 competency
On new record for type1 competency list shows type1 fields correctly
On new record for type1 competency list shows no extra fields at all. I can toggle the drop-down and it shows fine, but not on load