How to insert ‘&’ in Pdf template

Scenario

There are scenarios where users want to include the ‘&’ symbol in their Advanced PDF Template. This can be achieved by using a specific line of code.

Solution
  1. Navigate to Customization > Forms > Advanced PDF/HTML Templates
  2. Preferred Advanced PDF Template: Click Edit
  3. Upper right corner: Toggle Source Code
  4. Source Code: Add the following code in the preferred part of the template:  Replace  ${record. Fieldname} with ${record.Fieldname?replace(“&”, “&”)}
  5. Click Save.

Leave a comment

Your email address will not be published. Required fields are marked *