With Copilot
Acquia Copilot is a conversational AI connected into our product documentation and knowledge base. Ask Copilot about product features, technical details, troubleshooting and how to get started with Acquia products.
Components can include repeating sets of fields within the component form. A form element called a 'Field repeater' allows you to wrap one or multiple fields within a repeatable group. The Field repeater includes a button which allows the content author to add another group of fields as an array.
You cannot nest a field repeater within a field repeater.
You cannot link fields outside of the Field repeater to elements within the Pattern repeater.
You cannot repeat a drop zone within a pattern repeater.
The image below shows a component form with two fields within a Field repeater that have been repeated. The 'Add button' in the bottom right of the form is used to add another set of fields. The drag handle in the top left of each group is used to sort the order using drag and drop. The 'X' button in the top right is used to remove a group from the array.
The Field repeater form element is used in conjunction with a component layout element called a Pattern repeater. The Pattern repeater allows a section of layout on the layout canvas to be repeated. When linked together, the Field repeater will repeat the layout within the Pattern repeater. The result is a component that can include a repeating set of fields that repeats a corresponding layout.
The image below shows the Pattern repeater element, linked to the Field repeater component field and the resulting component form.
There are many use cases for this functionality. Some examples include:
For the Field repeater to repeat a layout it must be linked to a Pattern repeater on the Layout canvas. To link the Field repeater to a Pattern repeater:
You must still link the fields within the Field repeater to the Elements within the Pattern repeater in the usual way.
You cannot link fields outside of the Field repeater to elements within the Pattern repeater.
The Field repeater includes settings that allow you to control how it is used. These are:
If this content did not answer your questions, try searching or contacting our support team for further assistance.
Sign in to use Acquia Copilot
Sign in and try Copilot
Acquia copilot is a chat AI connected to our knowledge base and product documentation.
Get answers to your questions complete with references to our product documentation.