For the complete documentation index, see llms.txt. This page is also available as Markdown.

How To: Format Line Items Without Tables

Output related list data as text, not tables, using prefixes and postfixes.

Set the list class to none when you want text output instead of table markup.

Problem

You want to display related list data as running text or custom layouts, not as a table.

Solution

Comma-Separated List:

<!--{{!
<lineitemsSOQL>
<class>none</class>
<soql>SELECT Name FROM Contact WHERE AccountId = '{{!Account.Id}}'</soql>
<column postfix=", ">Name</column>
</lineitemsSOQL>
}}-->

Result: John Smith, Jane Doe, Bob Johnson,

With Prefix and Postfix:

<!--{{!
<lineitemsSOQL>
<prefix>Team Members: </prefix>
<class>none</class>
<soql>SELECT Name FROM Contact WHERE AccountId = '{{!Account.Id}}'</soql>
<column postfix=", ">Name</column>
<postfix>are assigned to this account.</postfix>
</lineitemsSOQL>
}}-->

Result: Team Members: John Smith, Jane Doe, Bob Johnson, are assigned to this account.

Better Formatting (Remove Last Comma):

Result: Team Members: John Smith, Jane Doe, Bob Johnson.

Line Breaks Instead of Commas:

Result:

Tips

  • <class>none</class> removes table formatting.

  • Use postfix to add separators.

  • Use abfprefixouter to avoid a separator before the first item.

  • Combine this pattern with other attributes like format-number and ToUpperCase.

Last updated

Was this helpful?