Voyager 2
2.x
2.x
  • Introduction
  • Javascript
  • Media Manager
  • Plugins
  • Settings
  • bread
    • Actions
    • BREAD Builder
    • Layouts
    • Lists
    • Manipulate data
    • Multilanguage
    • Relationships
    • Validation
    • Views
  • contributing
    • Assets
    • CSS
    • Introduction
  • de
    • index
  • formfields
    • Checkboxes
    • Date & Time
    • Dynamic input
    • Formfields
    • Media Picker
    • Number
    • Password
    • Radios
    • Relationship
    • Repeater
    • Select
    • Simple array
    • Slider
    • Slug
    • Tags
    • Text
    • Toggle
  • getting-started
    • Installation
    • Prerequisites
    • Tips and tricks
    • What is Voyager
  • overriding
    • Overriding formfields
    • Icons
  • plugins
    • Assets
    • Components
    • Features
    • Filter
    • Plugin development
    • Language
    • Menu Items
    • Custom pages
    • Preferences
    • Routes
    • Settings
    • Widgets
Powered by GitBook
On this page
  • Options
  • Type
  • Allow sorting
  • Browsing
  • Keys

Was this helpful?

  1. formfields

Repeater

PreviousRelationshipNextSelect

Last updated 3 years ago

Was this helpful?

The repeater allows you to repeat a given set of other formfields. For example you could add a list with guests for your birthday party. First, you add a text formfield for the name, another text formfield for the telephone number and a checkbox wether the guest is attending or not.

Repeater in the BREAD builder

This would result in the following when editing or adding an item:

Repeater in a BREAD

And the following would be stored in our database:

[
    {
        "name": "John Doe",
        "phone": "12345",
        "attending": ["yes"]
    }
]

Options

Type

Enter the name for an entry. In our example above this could be Guest. The type is used for the button Add Guest and the title (Guest #1). This field is translatable.

Allow sorting

Allow your users to sort items.

Browsing

Browsing only represent a simple text representation as we don't know about the formfields used in views

Keys

When using exactly one formfield without a key, values will be stored as ['foo', 'bar', 'baz'], otherwise as [{ key: 'foo' }, { key: 'bar' }, { key: 'baz' }]. Using multiple formfields without keys will show a warning.