Truncate text in a Merge Template

For fields that have many characters, you can truncate the data to show a limited number of characters.

You can truncate any text characters using the truncate specifier on your Merge Template.

For example, if you have an account code field that is set to the following:

  • 12345-67.8 - Sample Account Code Description

You can truncate the first five characters to only show the first segment of the account code by using the tag:

  • {$projectteam_0001|truncate:5:""}

Learn more about the truncate specifier on the Smarty website.