A repeater field allows you to wrap a group of fields together and enable a form user to repeat the fields as many times as needed.
Create a repeater field by following these two steps:
<fieldset class="kw-repeater">
. If you add a "fieldset" tag without the class it will be treated like a regular "fieldset" and not a repeater field.name="a_unique_name"
.All field types can be used inside a repeater EXCEPT:
When a repeater is active, an "Add" button appears to add more fields, and a "Remove" button appears to remove fields. They both get the class of
.kw-fieldgroup-button
. You can use this class to add stylings to both buttons.
They also each get a separate classes in case you want to target the buttons individually.
.kw-fieldgroup-button-add
.kw-fieldgroup-button-remove
.