Repeatable Fields adds flexibility to your forms by allowing users to dynamically duplicate fields, content, or even custom HTML.
Any elements placed inside the [repeatable] BBCode block can be repeated as many times as needed, giving users full control to add multiple entries of the same type without requiring you to predefine a fixed number of fields.
This feature is especially useful when you need to collect variable-length data, such as:
- Multiple phone numbers or email addresses.
- Several contact persons.
- Product lists in an order form.
- Education or work history details.
- Customizable itemized data that grows as the user adds more information.
Example usage
[repeatable]
[text name="phone"]
[/repeatable]The user will see one phone number field by default, with the option to add more fields by clicking the repeat button.
You can also include multiple fields and even custom HTML inside the repeatable block:
[repeatable]
<h4>Contact person</h4>
[text name="first_name" label="First Name"]
[text name="last_name" label="Last Name"]
[email name="email" label="Email"]
[/repeatable]This allows the user to add as many contact person sections as needed, each containing the same set of fields.
Key features
- Dynamically duplicate form fields as many times as the user requires.
- Support for custom HTML and content, not just form inputs.
- Full customization of add/remove buttons, separators, and descriptions.
- Simplifies forms where the number of items is not fixed in advance.
- Ensures that all repeated entries are properly stored and available in submissions.