Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

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

@priyanka1028 

try to see if any variable attributes you can add

I don't think any other way is present except ACL, also in ACL you won't know if the preview of record is done from Catalog Item 1 or Catalog Item 2

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 , Can I write UI policy or client script for sys_popup view to make fields readonly of popup view?

Please give a try.

 

@priyanka1028 

I already informed UI policy or client script won't work on sys_popup view

But 1 thing, if non-admins are able to see the preview record as readonly then what's the concern?

Admins in production won't be submitting any requests as those are not end users, so what's the issue?

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

Anil Nemmikanti
Tera Guru
Tera Guru

Hi Priyanka,

Maybe try with read only ACL's.