Field values in form export to pdf header/footer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2019 05:40 PM
Can custom code to pull form variables be used in the "User Specified Text" option for header/footer templates? Or how can I dynamically modify the header content based on fields on the record?
I tried a dumb attempt at current.[field] and that just showed up as text. I want to pull from the record values.
For example, from an incident form, I would like to add the caller as the middle header on both the Portrait and Landscape export to PDF actions.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2019 05:14 AM
I did some experimentation and double checked with our product team. Unfortunately, this is not possible at this time (Madrid). The developer loves the idea and suggested an enhancement request.
I invite you to open an enhancement request! Our product managers DO listen.
Enhancement requests: Tell us how you would improve the ServiceNow product
-------------------
Chuck Tomasi - Sr. TPMM, Now Platform, ServiceNow
LinkedIn | Twitter | Facebook | YouTube | Web
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2020 05:09 AM
Is it possible to script which header/footer you want to use when exporting a PDF from a form that has an export view? We are using Orlando
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2022 07:54 AM
Hi Chuck,
Did this ever made into the enhancement in newer releases? Any suggestions on how to do this with San Diego?
Thank you!