Insert variable
editor_insertVariableInsert a variable reference inline to display a field value in text (answer piping). Works with hidden fields, calculated fields, and question input fields. Use in paragraphs and headers to show dynamic values like recipient names, scores, totals, or piped answers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| formId | Yes | Form ID | |
| nodeId | Yes | ID of the text node to insert the variable reference into (e.g., "p1", "h1") | |
| offset | Yes | Character position to insert at. Use -1 to append at end. Each existing inline element (variable, link) counts as ONE position, not its display label length. Prefer 0 / -1 when the target paragraph already has inlines. | |
| fieldId | Yes | ID of the field to reference — can be a hidden field (e.g., "hf1"), a calculated field (e.g., "cf1"), or a question input field (e.g., "ti1") for answer piping | |
| fieldName | Yes | Display name for the variable reference |