Ui policy mandatory

yardenKrispel
Tera Contributor

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

yardenKrispel_0-1702825159366.png

 

yardenKrispel_1-1702825207105.png

 

 

8 REPLIES 8

Ankur Bawiskar
Tera Patron
Tera Patron

@yardenKrispel 

are you sure the field is present in workspace view?

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

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

 

yardenKrispel_0-1702825880653.png

 

yardenKrispel_1-1702825905161.png

 

@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.

 

Screenshot 2023-12-17 at 10.51.47 PM.png

 

Please mark this answer helpful and correct if it addresses your issue.

Namrata Ghorpad
Mega Sage
Mega Sage

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