How to add serial number in the click of Preview Icon

PrashantT
Giga Guru

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.

 

PrashantT_0-1757573421002.png

 

Thanks

 

8 REPLIES 8

PrasadShelar
Tera Contributor

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

Ajay_Chavan
Kilo Sage

@PrashantT -

Just go through below articles which sugest you to configure sys_pop view for your reference table.

Useful links:

https://www.servicenow.com/community/itsm-articles/how-to-display-fields-of-your-choice-on-sys-popup...

https://www.servicenow.com/community/developer-forum/how-do-i-configure-a-pop-up-view-on-a-reference...

 

https://www.servicenow.com/community/servicenow-ai-platform-blog/how-to-customize-fields-displayed-o...

Glad I could help! If this solved your issue, please mark it as Helpful and Accept as Solution so others can benefit too.*****Chavan A.P. | Technical Architect | Certified Professional*****

M Iftikhar
Mega Sage

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.

rohitramtir
Tera Contributor

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:

Screenshot 2025-09-12 at 2.57.56 PM.png



Preview view with serial number:

Screenshot 2025-09-12 at 2.58.44 PM.png

regards,
Rohit Ramtirthe