Merge tags let read only text on a form show live Salesforce data. You write a tag where a value should appear, and at render time the platform replaces it with data loaded from the record the form is bound to. Tags can pull from the context record, from related records, and can repeat a block once per child record.
Merge tags are resolved in rich text (HTML) questions, in question, panel and page titles and descriptions, and in the form level text such as the completed message, the loading message and the navigate to URL.
Titles, descriptions and rich text resolve against the form's context record, wherever the element sits on the form. Elements inside a child object repeat section are the exception: rich text content and the titles and descriptions of each row resolve against that row's child record. The repeat section's own title still resolves against the context record. Rows added by the person filling in the form have no backing record, so their tags render from the unmerged template.
Tags use double braces.
| What you want | Tag | Example |
|---|---|---|
| A field on the context record | {{record.FieldApiName}} |
{{record.FirstName}} |
| A field path through relationships | {{record.Path__r.Field}} |
{{record.Account.Name}} |
| A field on a related or child record | {{FieldApiName}} |
{{Amount}} |
To repeat a block once per child record, wrap it in a section that opens and closes on the child relationship, and put the per child tags inside it:
{{#record.RelationshipName}}
<li>{{Name}} - {{Amount}}</li>
{{/record.RelationshipName}}
Everything between the opening {{#record.RelationshipName}} and the closing {{/record.RelationshipName}} is emitted once for each child record, with the inner tags resolving against that child. This is how you render a live list of related records, such as open cases or line items, inside form text.
You do not have to type tags by hand. Rich text questions in the builder have a Get Merge Field action that opens a generator. In it you pick the object, then a merge object which is the context object or one of its child relationships, then a field path. The generator copies the correct tag to your clipboard, including the correct repeat section block when you choose a child relationship. Paste it into your text.
The Context Object field is pre-filled from where the rich text question sits on the form:
| Where the question sits | Context Object defaults to |
|---|---|
| Top level of the form, or inside a plain grouping panel | The form Context Object |
| Inside a parent object panel | That panel's parent object |
| Inside a child object repeat section | That section's child object |
If you change Context Object yourself, the generator keeps your choice while you keep working on the same question, so building a block of several merge fields does not reset it between each field. It only reverts to the default when you open it from a question with a different context.
At render time the platform scans the text for the field paths and child sections you referenced, loads exactly those fields and related records from the bound record, and merges them in. Only referenced fields are queried. Related record loading is recursive, so a repeat section can itself reference deeper relationships.
Merged output is written back into the saved form data, so a preview or a resumed draft shows the values as they were merged at submission time rather than re merging against possibly changed data. See How previews work.
Merge data loads only validated field paths that the form references, so a public form can show related data without the guest user needing broad read permissions. See Security architecture.