make read-only on preview popup form on service portal
						
					
					
				
			
		
	
			
	
	
	
	
	
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
06-05-2025 12:11 AM
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?
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
06-05-2025 12:40 AM
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
06-05-2025 12:43 AM
@Ankur Bawiskar , Can I write UI policy or client script for sys_popup view to make fields readonly of popup view?
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
06-05-2025 12:51 AM
Please give a try.
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
06-05-2025 01:33 AM
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
06-05-2025 12:32 AM
Hi Priyanka,
Maybe try with read only ACL's. 
