Refresh Form Data from Context
Audience:
Low-code EngineersSkill Prerequisites:
Actions,Forms 2.0,Tokens
Refreshes every field of a Forms 2.0 form from the tokens with the same names, without reloading the page. It's a final action: no actions after it run.
This action is only available in Forms 2.0, in button actions and other events that run after the form has loaded. It's the Forms 2.0 counterpart of Update Form Data (AJAX).
Typical Use Cases
- Show the values that a button's actions set in tokens named like the fields, for example after Create/Update Tokens or Run SQL Query
- Reload a Repeater from its Initial Entries list after the actions changed that list
Don't use it to
- Change a few fields and keep running actions. Use Refresh Field Data instead.
- Set values from a JSON object. Use Refresh Form Data from JSON instead.
- Run more actions afterwards. Nothing after this action runs.
Related Actions
| Action Name | Description |
|---|---|
| Refresh Field Data | Sets only the fields you list. |
| Refresh Form Data from JSON | Sets fields from a JSON object, including Repeater entries. |
| Create/Update Tokens | Sets tokens, including tokens named like form fields. |
Input Parameter Reference
This action has no parameters. Use the action's Condition to control when it runs. See Common Parameters.
How it works
- The user clicks a button. The form's values are sent to the server, and each field's value becomes a token with the field's name.
- Earlier actions change some of these tokens. A token with the same name as a field becomes that field's new value. For fields inside a Section, the token uses the full name, for example
[Billing:City]. - Refresh Form Data from Context ends the actions and sends the value of every active field to the browser, which shows them.
Fields whose token didn't change show the value the user entered, because it was sent with the click.
Considerations
- Final action. It ends the current run. Put it last, after the actions that set the tokens.
- The whole form is refreshed. Every active field is sent back, not only the ones that changed.
- Repeaters. A Repeater is refreshed only when it has an Initial Entries list and that list exists when the action runs. Otherwise it keeps the entries on screen.
- Use the field's full name. The token must have the field's name, for example
[Email], or its full name inside a Section. Tokens that don't match a field don't change anything on screen.
Examples
To understand how to use the below examples, please see Running Examples.
1. Show values set by earlier actions
Put this action last in a button's actions, after a Create/Update Tokens that sets FullName to [FirstName] [LastName]. The form then shows the new FullName value without a page reload.
{
"Title": "Refresh Form Data from Context",
"ActionType": "RefreshFormData.Csp",
"Description": "Show the new values in the form",
"Parameters": {}
}
Revised 11/18/2026