UI Policy not working in Service Operations Workspace

NishaB
Tera Expert

Hi,

In the incident form, I have a field called Category and it has some choices. Each of the choices have corresponding associated fields also. If each of the choice is selected, corresponding field will be displayed and corresponding fields of other  choices  will be hidden. I created a UI Policy for this. It is working in native view, but not in SOW. I have added the field in form layout of SOW also. When I checked in the platform by taking the view as SOW, it is working. But when I go to SOW, it is not working. How to resolve this? I will attach the screenshots.

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

@NishaB 

did you try to use UI Type - ALL?

Also did you try to use client script for this?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

UI Type-All is used for scripts right? I haven't used scripts. Instead, I used conditions. I used client scripts, but it is giving unexpected errors.

@NishaB 

try giving UI Type - ALL and see if it works

Use some alert in your Run script if true and Run script if false fields

That will let you know if any alert is coming or not?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@NishaB 

it worked fine for me with this UI policy on incident table in SOW (now/sow/record/)

It made assigned to mandatory

Ensure no other UI policy of higher order is conflicting

Ensure Global checkbox is checked so that it runs in all views

AnkurBawiskar_0-1746783405939.pngAnkurBawiskar_1-1746783422127.png

 

assigned to mandatory ui policy sow.gif

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader