How to add serial number in the click of Preview Icon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi,
I have one requirement where I have to add the serial number as well on the click of preview icon. This variable is created in the catalog item, and it is editable in the RITM.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hey @PrashantT
Solution -
- Go to the referenced table
Navigate to any record in the Company table (core_company). - Open Form Layout
Right-click the form header -> Configure -> Form Layout. - Create or select sys_popup view
In the View name dropdown: - If sys_popup exists, select it.
- If not, click New, name it sys_popup, and click OK.
- Add your custom field
Use the layout editor to add your custom field (e.g., u_custom_field) to the sys_popup view. - Save and test
Save the layout. Go back to the Incident form, hover over the Company icon - your custom field should now appear in the popup!
If this helped, please hit the Helpful button and accept as a solution - it really means a lot! 🙂
regards,
Prasad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Just go through below articles which sugest you to configure sys_pop view for your reference table.
Useful links:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago - last edited 3 weeks ago
Hi @PrashantT ,
To customize which fields appear in the reference field popup, you just need to configure the sys_popup view for the target table:
Open the table with ?sysparm_view=sys_popup in the URL like below:
<your instance name>.service-now.com/<table name>.do?sysparm_view=sys_popup
Add/remove the fields you want (e.g. Serial Number). Save the layout.
This way, whenever you click the preview icon, the popup will show the fields you defined in that view.
I also found a related discussion on the ServiceNow Community that you can refer to:
https://www.servicenow.com/community/servicenow-ai-platform-blog/how-to-customize-fields-displayed-o...
Thanks & Regards,
Muhammad Iftikhar
If my response helped, please mark it as the accepted solution so others can benefit as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hey @PrashantT
Solution:
1. Go to the form where you want to modify the preview, and open Configure → Form Layout from the context menu.
2. By default, you'll see the Default view, but you need to check if the sys_popup view exists.
If it exists, you can add or remove fields as per your requirements.
If it doesn’t exist, create a new view named "sys_popup".
Note: Make sure the view is named exactly sys_popup — not something like sys_popup,asset1. The preview functionality only works with the sys_popup view.
-----
Refer to the attached screenshot for more details.
Added serial number to sys_popup view:
Preview view with serial number:
regards,
Rohit Ramtirthe