Mandatory option is not coming in configuration dictionary and UI Policy

Aman61
Tera Contributor

Hi,

I am not getting option to make fields mandatory from configure dictionary and UI policy as well. Currently I am using Tokyo version.

Aman61_1-1668059937039.png

Looking for a quick reply.

1 ACCEPTED SOLUTION

Hi @Aman61 ,

UI policy and client script will not work on list view and only works on form.

You can try with data policy it will work on list view as well.

If it helps please click Accept as Solution/hit the Thumb Icon.
ServiceNow Community MVP 2024.
Thanks,
Pavankumar

View solution in original post

5 REPLIES 5

Pavankumar_1
Mega Patron

Hi @Aman61 ,

not sure what is the issue. But you can try below option

1. Go the table and on Columns and you will see all fields.

2. You can use Mandatory field and to Make Mandatory to true and Save.

Screenshot (356).png

or you can use Client script and data policy also.

If it helps please click Accept as Solution/hit the Thumb Icon.
ServiceNow Community MVP 2024.
Thanks,
Pavankumar

Currently we are using client Scripts but our concern is on the list value of dictionary entries and UI policy both are not working. So, just wanted to know actual reason why they are not working ?

Hi @Aman61 ,

UI policy and client script will not work on list view and only works on form.

You can try with data policy it will work on list view as well.

If it helps please click Accept as Solution/hit the Thumb Icon.
ServiceNow Community MVP 2024.
Thanks,
Pavankumar

Theo BOULANGER
Giga Guru

Hello @Aman61 

 

I don't really know where it comes from but you can try to force it in a script by using :

setReadOnly() function.

 

Regards,

Theo