Generate PDF with non-empty fields on a form view
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2024 03:22 PM
Hi ,
I have a requirement to export PDF of only the non-empty fields on Incident form view. Also, the related list should only show the lists that have a record associated to it. Is it possible to generate custom PDF for a record?
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2024 03:26 PM
Hi there @Pooja Gupta
Yes i guess, you can generate a custom PDF for Incident records:
Start by creating a custom PDF template using HTML and CSS, where you define the layout and content structure. Within this template, use server-side scripting to dynamically include only the non-empty fields from the Incident form view.
Next, extend this customization to related lists by incorporating logic to display only those related lists that have associated records. Leveraging server-side scripting capabilities, you can query related records and conditionally include related lists in the PDF template based on their association status.
Once your PDF template is configured to include non-empty fields and relevant related lists, implement a server-side script, such as a Business Rule or Script Include, to handle PDF generation.
If this helps kindly accept the response thanks much.,
Kind Regards,
Mohamed Azarudeen Z
Developer @ KPMG
Microsoft MVP (AI Services), India
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2024 10:09 PM
Hi @Pooja Gupta ,
Did you get the solution? Will you please tell me how you achieved it?