Skip to content

Form: add grouping element

Plugin ID: eca_form_add_group_element

Available since: 1.0.0

Add a collapsible details element (also known as fieldset) for grouping form fields.

Fields

Element name — config key: name

The element name is a machine name and is used for being identified when rendering the form. Example: name_info
This field supports tokens.

Type: textfield · Required: yes · Default: empty string

Title — config key: title

This will be shown to the user in the form as grouping title.
This field supports tokens.

Type: textfield · Required: yes · Default: empty string

Open — config key: open

Whether the group should be open to edit or collapsed when displayed.

Type: checkbox · Required: no · Default: false

Element weight — config key: weight

The lower the weight, the element appears before other elements having a higher weight.

Type: number · Required: yes · Default: 0

Fields — config key: fields

Machine names of form fields that should be grouped together. Define multiple values separated with commas. Example: first_name,last_name
This field supports tokens.

Type: textfield · Required: no · Default: empty string

Introduction text — config key: introduction_text

Here you can set an introduction text of the group.
This field supports tokens.

Type: textarea · Required: no · Default: empty string

Summary value — config key: summary_value

Here you can set the summary text of the group.
This field supports tokens.

Type: textarea · Required: no · Default: empty string

Group — config key: group

Here you can set this element to be a part of a parent group.
This field supports tokens.

Type: textfield · Required: no · Default: empty string