How to Make a field Mandatory or Read only in a List View based on a condition ?

Daksha1
Tera Contributor

Hi ,

We have a requirement where we have to set a Field as Ready only based on a condition in list view. See below workspace related list view:

 We want to make the RTC field read only when the RTC field has value pulled in while loading.

find_real_file.png

 

As of now RTC is editable. UI Policy is working in Form Level , not List view level.

Any suggestions on how to achieve this ?

 

(Changed question from mandatory to Read only)

1 ACCEPTED SOLUTION

Surbhi Srivasta
Tera Expert

Hi Daksha,

You need to write Field Level ACL to achieve your requirement. Try to follow the given steps:-

1) elevate your role as security_admin

2) create new list edit ACL on catalog task table and field as RTC(your field name)

3) use advanced checkbox as true

4) admin overrides uncheck - means even admin cannot list edit

4) script as

answer = false;

find_real_file.png

 

Please mark the answer as correct/helpful based on impact.

Regards,

Surbhi

View solution in original post

10 REPLIES 10

Community Alums
Not applicable

Hello Daksha,

Could you please check below thread, if it helps you. 

https://community.servicenow.com/community?id=community_question&sys_id=1982c321dbd8dbc01dcaf3231f96...

 

Regards,

Akshay

Thanks for the response Akshay. This is not working for us. 

Sagar Pagar
Tera Patron

Hi,

Create a data policy for your field. It will work for list view level and will not allow to submit records with empty value for your field.

 

Thanks,
Sagar Pagar

The world works with ServiceNow

Thanks Sagar. This isn't working in Workspace for some reason. Works in Native view.