Forms 2.0 - Repeater
This page is preliminary and subject to change as Forms 2.0 continues to be developed.
A container that holds other fields and repeats them for multiple items - for example, letting a user enter several addresses, or several line items, within a single form.

Adding a Repeater
Drag the Repeater tile from the field palette onto the Canvas - see Build for more on adding and arranging fields in general. Once it's on the Canvas, drag other fields into it - these fields make up the template repeated for each entry.
Field names inside a Repeater
A field inside a Repeater is addressed by its full name: the Repeater's Name, a colon, and the field's Name. In a Repeater named Children, a field named FirstName is [Children:FirstName]. Use the full name everywhere: in Entry Title, in the columns of the Initial Entries list, in conditions and expressions, and in the list tokens at submit. A Section inside the Repeater adds its own name too, for example [Children:Address:City]. Layout Containers don't.
In a JavaScript expression on a field inside the Repeater, form['Children:FirstName'].value reads the field in the same entry.
Buttons inside a Repeater can be Regular or Cancel, not Primary, and their Validation Scope defaults to Repeater Item - only the fields of the button's own entry are checked.
How repeating works
At runtime, the person filling out the form sees one set of the contained fields per entry, under a collapsible header labeled with that entry's Entry Name or Entry Title, plus an Add button (labeled by Add Button Title) to add another entry. Each entry can be removed individually, subject to Minimum Entries. Entries can also be preloaded from an existing list of records using Initial Entries and Initial Entry ID Key - useful for letting a user edit a set of existing records rather than starting from scratch.
Parameters
Only Repeater-specific parameters are listed below. See Common Field Settings for the settings shared with other field types.
| Field | Description |
|---|---|
| Initial Entries | The name of the entity list used to populate the Repeater's initial entries. Its columns must be named after the fields' full names, for example Children:FirstName - see Initialize entries from existing records. |
| Initial Entry ID Key | The name of the list column that contains each entry's ID, for example Id. At submit, the ID is included in each entry of :UpdatedEntries and :DeletedEntries under this same name. Entries without an ID are treated as new. |
| Layout Mode | Vertical (the default) and Horizontal arrange each entry's fields automatically. Manual allows free placement and resizing in a mosaic layout. |
| Columns | Only shown in Manual mode. The number of columns in the mosaic layout. |
| Alignment | Only shown in Horizontal mode (Top/Middle/Bottom) or Vertical mode (Left/Center/Right). The alignment of the fields within each entry. |
| Gap | Spacing between fields within each entry - Inherit, Compact, Normal, or Loose. |
| Padding | The padding for the container, in CSS units (for example 8px 0px). |
| Minimum Entries | The fewest entries the user must provide. Leave empty or set to 0 for no minimum. Supports Tokens. |
| Maximum Entries | The most entries the user can add. Defaults to 100. Supports Tokens. |
| Entry Name | The default label for each entry. Supports Tokens. |
| Entry Title | Tokens of fields contained in the entry, using their full names (for example [Children:FirstName]), used to dynamically update the entry's title as the user fills it in - replacing Entry Name once those fields have data. |
| Add Button Title | The text shown on the button end users click to add another entry. Defaults to Add. Supports Tokens. |
| Root CSS Classes | One or more CSS class names, separated by spaces, applied to the field's root element only. Supports Tokens. |
Layout Mode, Alignment, Gap, and Padding can have a different value for each form width (Narrow, Medium, Wide). Click the device icon next to the setting to switch it on. See Layout Container for how this works.
Common settings that apply to Repeater
A Repeater supports these Common Field Settings:
- General (Label, Name, and Hint)
- Active
- Visibility settings
- Enabled settings
Repeater does not support Field Automations or Field Validators - use Minimum Entries and Maximum Entries above to constrain how many entries are required or allowed.
Tokens
A Repeater returns its entries as tokens, referenced using the field's Name - for example, if the field's Name is Addresses:
| Token | Description |
|---|---|
[Addresses] | A JSON array of all current entries. Each entry is an object keyed by the fields' own Names (a Section in the entry becomes a nested object), plus the ID under the Initial Entry ID Key name for entries loaded from Initial Entries. |
[Addresses:Count] | The number of entries. |
[Addresses:InsertedEntries:Count] | The number of new entries. |
[Addresses:UpdatedEntries:Count] | The number of existing entries the user edited. |
[Addresses:DeletedEntries:Count] | The number of deleted entries. |
Lists
A Repeater also exposes its entries as Lists, for iterating with actions like Execute Actions for each List Entry - referenced using the field's Name:
| List | Description |
|---|---|
Addresses | The entries themselves. |
Addresses:InsertedEntries | Entries added since the form loaded, with no prior record. |
Addresses:UpdatedEntries | Entries loaded from Initial Entries that the user edited and didn't remove. Loaded entries the user didn't touch aren't included. |
Addresses:DeletedEntries | Entries loaded from Initial Entries that were removed. |
Each list's columns are the fields' full names, plus, in :UpdatedEntries and :DeletedEntries, a column named after Initial Entry ID Key holding the entry's original ID. Inside an action iterating one of these lists (set as its List Name), a column's token is the list name, a colon, and the column name. For a Repeater Addresses with a field City and Initial Entry ID Key Id, iterating Addresses:UpdatedEntries:
| Token | Value |
|---|---|
[Addresses:UpdatedEntries:Addresses:City] | The entry's City. Note that the Repeater's name appears twice: once in the list name, once in the field's full name. |
[Addresses:UpdatedEntries:Id] | The entry's original ID. Only available when Initial Entries and Initial Entry ID Key are set. |
See Execute Actions for each List Entry.
Initialize entries from existing records
Initial Entries and Initial Entry ID Key preload a Repeater with existing records, so a person edits (and adds to) a set they already have instead of starting from scratch. Doing this takes two parts: a list of the existing records, loaded into context before the fields initialize, and the Repeater's own settings pointed at that list.
As an example, say a Children Repeater contains a First Name Text Box (Name FirstName) and an Age Number field (Name Age), and should start out populated with each child belonging to a given parent. Children live in app.Child (Id, FirstName, LastName, Age, and audit columns), related to their parent through the join table app.ParentChildChildren (ParentId, ChildId):
- Open the Form Builder's Settings tab, and under On Preinit, Add Action > Create List from SQL - Preinit runs before fields initialize, so the list is ready in time for the Repeater to use it.
-
Set List Name to
ChildrenList- theListsuffix is a naming convention that flags this token as a list rather than a single value, not a requirement. -
Set SQL Query to join the two tables and select each child's Id, first name, and age for the given parent. Name the value columns after the fields' full names (
Children:FirstName,Children:Age), for example:select c.Id, c.FirstName as [Children:FirstName], c.Age as [Children:Age]from app.Child cinner join app.ParentChildChildren pcc on pcc.ChildId = c.Idwhere pcc.ParentId = @ParentId -
Under Bind Tokens, add an entry with Parameter Name
ParentIdand Parameter Value1- this binds the query's@ParentIdto the parent whose children should be preloaded (here, a literal1for the example; in practice, this is typically a token identifying the actual parent record, such as one from the current page or record). -
Leave Properties unset so the query's own column names (
Id,Children:FirstName,Children:Age) become the list's properties directly.
-
- Back on the Build tab, select the Repeater and set Initial Entries to
ChildrenList- the same List Name given to the list in step 1. - Set Initial Entry ID Key to
Id, matching the property the query returns for each child's identifier. This is what lets the form tell an edited existing child apart from a newly added one at submit time.
Click Save, return to the live form, and refresh. Each of parent 1's children now appears as its own entry, pre-filled with that child's First Name and Age.
A Repeater matches each list item's properties to the contained fields by their full name - the Repeater's Name, a colon, and the field's Name (not its Label). So the columns above must be exactly Children:FirstName and Children:Age. A column named just FirstName is ignored, and the field shows its default value instead. A field inside a Section in the Repeater needs a column such as Children:Address:City. The ID column, Id, keeps its plain name and must match Initial Entry ID Key.
At submit time, every entry loaded from Initial Entries that the user edited, and didn't remove, appears in [Children:UpdatedEntries]. Loaded entries left untouched aren't listed, so nothing is rewritten for them. One removed before submitting appears in [Children:DeletedEntries], identified by its ID. A new entry added via the Repeater's Add Button Title has no ID yet, so it's treated as new and appears in [Children:InsertedEntries] instead.
Save changes back to the database
Loading entries from Initial Entries only pre-fills the Repeater - it doesn't make submitting the form write anything back on its own. That's on the button's On Click Handler, using the :InsertedEntries, :UpdatedEntries, and :DeletedEntries lists (see Lists above) together with Execute Actions for each List Entry - looping over each list and running one action per entry, using that entry's own field tokens (plus its ID column for :UpdatedEntries/:DeletedEntries) to know what to write and where.
Which action belongs inside that loop depends on where the data actually lives, not on the Repeater itself - the three lists work the same regardless:
- A Plant an App Entity (as in the example below) - use that Entity's own generated actions, listed under the Entities group in the action picker: Create New (Entity) for
:InsertedEntries, Partially update (Entity) (or Update (Entity)) for:UpdatedEntries, and Delete (Entity) for:DeletedEntries- plus the relation actions (Add (Relation) to (Entity) / Remove (Relation) from (Entity)) if entries need linking to a parent record. - A plain SQL table not modeled as an Entity - use Run SQL Query with an
INSERT/UPDATE/DELETEper list, and Bind Tokens to pass in the entry's field values and its ID - the same way Create List from SQL was used to load the entries in the first place. - An external system - use Server Request to call whatever API owns the data, building each request from the entry's field tokens.
The rest of this section works through the Entity case, since that's what the Children example has used throughout - the same three-list, one-action-per-entry pattern applies no matter which of these the data actually lands in.
Continuing the Children example, this assumes Child is an Entity with FirstName and Age properties (matching the Repeater's fields), related to the Parent Entity through a relation named Children.
Updated entries - a Children:UpdatedEntries entry already has a matching Child record, so update it in place with Partially update Child rather than creating a new one:
- Add an Execute Actions for each List Entry action to the button's On Click Handler.
- Set List Name to
Children:UpdatedEntries. - Inside its Action List, add a Partially update Child action:
-
Child ID:
[Children:UpdatedEntries:Id] -
Properties, one row per changed field:
Property Name Property Value FirstName[Children:UpdatedEntries:Children:FirstName]Age[Children:UpdatedEntries:Children:Age]
-
- Set List Name to
Because this lives inside the loop, it runs once per entry in Children:UpdatedEntries, re-targeting each entry's own Id and its own field values each time. Only entries the user edited are in the list, so untouched children aren't written.
Inserted entries - a Children:InsertedEntries entry has no matching Child record yet, so create one and link it to the parent:
- Add another Execute Actions for each List Entry action, with List Name set to
Children:InsertedEntries.- Inside, add a Create New Child action:
FirstName:[Children:InsertedEntries:Children:FirstName]Age:[Children:InsertedEntries:Children:Age]- Output Token:
NewChildId
- Then an Add Children to Parent action (the relation action generated for the
Childrenrelation):- Parent ID: the parent's ID (for example
1, matching the Create List from SQL example above) - Child ID:
[NewChildId]
- Parent ID: the parent's ID (for example
- Inside, add a Create New Child action:
Deleted entries - a Children:DeletedEntries entry's Child record needs to be unlinked from the parent, then removed:
- Add a third Execute Actions for each List Entry action, with List Name set to
Children:DeletedEntries.- Add a Remove Children from Parent action:
- Parent IDs:
1 - Child IDs:
[Children:DeletedEntries:Id]
- Parent IDs:
- Then a Delete Child action:
- Record Id:
[Children:DeletedEntries:Id]
- Record Id:
- Add a Remove Children from Parent action:
Deleting a Child record doesn't automatically remove it from the Children relation - unlink it first with Remove Children from Parent, then delete it, to avoid leaving an orphaned relation entry behind.
Last updated: November 18, 2026