Accessing 'preview this record' UI action

Jon Hogland
Tera Guru

Hi all. I've been stuck on something that I was hoping to find help with. When looking at a list view of a table, like incident, you're able to click a little "i" button to preview the record before opening it. I know we can edit what appears on the view by interfacing with sys_popup or cxs_popup views, but I wanted to customize the script that runs when clicking the preview button. I've looked through the UI actions list and have been unable to find one associated with "preview this record."
Can anyone point me in the right direction for finding and accessing this? Thanks.



If I've at all helped, please return the favor by clicking the thumb next to my post. Thanks!
2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@Jon Hogland 

the code is hidden in the HTML and at platform level and you can't do much there.

what's your business requirement here?

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

I was hoping to dynamically adjust the view based on the record's state. In our instance, we want a field labeled "On hold reason" to only appear if the record is on hold. I've attempted UI policies & view rules to accomplish this (swapping between one view that has the field, and one that does not). The views I'm attempting to dynamically swap between are the cxs_popup and sys_popup view.



If I've at all helped, please return the favor by clicking the thumb next to my post. Thanks!