Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
How to modify the fields that are exported into a PDF file from the Service Portal form widget - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • How to modify the fields that are exported into a PDF file from the Service Portal form widget
KB0784993

How to modify the fields that are exported into a PDF file from the Service Portal form widget


3719 Views Last updated : May 22, 2025 public Copy Permalink
KB Summary by Now Assist

Issue

How to modify the fields that are exported into a PDF file from the Service Portal Form widget. Is it possible to select different fields to be exported in a PDF? 

Resolution

By default, the fields exported into a PDF file are the same displayed in the Form widget, which are the fields displayed in the Service Portal view (sp). However, this behavior can be changed after a customization, and different fields can be displayed in the form and be exported.

To do this: 

  1. Create a new view and form for the table you are using, for example, the incident table.
  2. Clone the Form widget 
  3. Edit the Form widget. Go to Line 40 and 4 in the HTML Template section. You will see: 

    <li><a target="_new" href="/{{data.f.table}}.do?PDF&sys_id={{data.sys_id}}&sysparm_view={{data.f.view}}">${Export to PDF}</a></li>
    <li><a target="_new" href="/{{data.f.table}}.do?PDF&landscape=true&sys_id={{data.sys_id}}&sysparm_view={{data.f.view}}">${Export to PDF (landscape)}</a></li>

    4. Change the value of the parameter sysparm_view parameter to the view you want to use for the PDF file, for example pdfview:

    <li><a target="_new" href="/{{data.f.table}}.do?PDF&sys_id={{data.sys_id}}&sysparm_view=pdfview">${Export to PDF}</a></li>
    <li><a target="_new" href="/{{data.f.table}}.do?PDF&landscape=true&sys_id={{data.sys_id}}&sysparm_view=pdfview">${Export to PDF (landscape)}</a></li> 

           5. Save.

 

 

 


The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.