make read-only on preview popup form on service portal

priyanka1028
Tera Contributor

Hello Everyone,

 

I have a requirement to make all fields and UI actions read-only in the preview popup of a reference field for a specific catalog item on the Service Portal. This should not affect other catalog items.

 

Let's say I have a reference field called 'Requested For' on a catalog item, and it refers to the sys_user table. Whenever I preview this field, the preview form for the user record should be read-only.

 

Can anyone help me with this requirement?

10 REPLIES 10

Ankur Bawiskar
Tera Patron
Tera Patron

@priyanka1028 

did you check with non-admins if they are able to see it as editable?

see if this helps

Make record preview readonly in Service Portal (all records) 

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

Hi Ankur, 

 

The requirement is it should be non-editable to everyone including admins.

@priyanka1028 

then ensure properly table level WRITE ACL is configured so that only correct set of users are seeing it as editable

You cannot add UI policy or client script to that popup view.

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

@Ankur Bawiskar , the requirement is not for specific set of users, it should be read-only on particular catalog item.