Add StaticText
Audience:
Low-code EngineersSkill Prerequisites:
Forms,Tokens,HTML
Adds text or HTML to a Dynamic Field Container when the form loads. The content is displayed, but not submitted. It works like a Static Text field placed in the form builder.
See Dynamic Fields for how dynamic fields work and how to set up the container.
Typical Use Cases
- Add a heading or instructions above a group of dynamic fields
- Show read-only details for each item in a list, such as a product's description, next to its input fields
Don't use it to
- Pass a value to the submit actions. Static text isn't submitted. Use Add Hidden Field with Custom Value instead.
Related Actions
| Action Name | Description |
|---|---|
| Add Hidden Field with Custom Value | Adds a hidden value that's submitted with the form. |
Input Parameter Reference
This action has the common parameters, except Secure Input, Readonly, Is Required, Validation Condition, the custom validators and Tokenize Validators?.
The content comes from Initial Value, which can contain HTML and tokens. Field Title is still required.
If Initial Value includes tokens with values users entered, the HTML in those values is displayed as HTML. Only use trusted values.
Output Parameters Reference
| Parameter | Description |
|---|---|
| Field ID Token Name | Optional. Token that receives the cleaned field ID. If empty, the ID is saved in [<FieldId>:Name]. |
Examples
To understand how to use the below examples, please see Running Examples.
1. Add a section heading
Add this action to the form's On PreInit or On Init actions, before the actions that add the other fields. It adds a heading and a short instruction to the ExtraFields container.
{
"Title": "Add StaticText",
"ActionType": "AddDynamicStaticText",
"Description": "Add the section heading",
"Condition": null,
"Parameters": {
"ContainerId": "ExtraFields",
"FieldId": "ExtraHeading",
"FieldName": "Extra details",
"InitialValue": "<h3>A few more details</h3><p>These questions apply to [User:DisplayName]'s account.</p>",
"FieldIdTokenName": ""
}
}
Revised 09/25/2026