Reference fields to be greyed out in serviceportal irrespective of roles

Shobha N
Tera Contributor

Hi All, 

in native view when we click on "i" icon, and open the respective table/field it is greayed out , but in portal some fields are greyed out and some are not.

so i would like to make all fields greyed out when clicked on reference field.

 

and im trying to achieve this in catalog item. can you please help me to acheive it.

 

 

 

2 REPLIES 2

Samaksh Wani
Giga Sage
Giga Sage

Hello @Shobha N 

 

The reason behind is the When you open the reference table pop up in the Native UI, It gets operate from the list view, and ACL might be written read only for list edit.

 

Plz mark my solution as Accept, If you find it helpful.

 

Regards,

Samaksh

 

 

Sandeep Rajput
Tera Patron
Tera Patron

@Shobha N Greyed out fields indicate that a field is readonly field. A field can be made read only via multiple ways.

1. UI Policy: A UI Policy and an associated UI Policy Action can be created to make a field read only, https://www.glidefast.com/post/ui-policy-in-servicenow#:~:text=UI%20policy%20in%20ServiceNow%20allow....

2. Client Script: an OnLoad client script can be created and inside the script g_form.setReadOnly('<field name>' true); can be used to make a field read only.

3. Read only through form: Read only checkbox on the Catalog item variable form can be used to make a field read only.

 

Hope this helps.