Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Multi-value form element

No security coverage Under active development 3,100 sites

This module allows you to create form elements that can repeat multiple times, similar to how fields can have multiple values. It enables users to add, remove, and reorder sets of form fields, such as name and email inputs for contacts.

Provides a multi-value form element that wraps any number of form elements.
The wrapped elements will be repeated based on the cardinality specified on the wrapper.
It basically brings the delta cardinality concept of fields to form elements.
Each set of child elements ("delta") can be re-ordered with drag-and-drop.

$form['contacts'] = [
  '#type' => 'multivalue',
  '#title' => $this->t('Contacts'),
  '#cardinality' => MultiValue::CARDINALITY_UNLIMITED,
  'name' => [
    '#type' => 'textfield',
    '#title' => $this->t('Name'),
  ],
  'mail' => [
    '#type' => 'email',
    '#title' => $this->t('E-mail'),
  ],
];

Ask your assistant about Multi-value form element

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
4
Tracked since
Mar 2023
Latest release
3 months ago
Releases (12 mo)
2 ▲ from 1
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
2.0.x-dev Dev 11 Jul 2, 2026
1.0.0-beta8 Pre-release 10–11 Nov 17, 2025
1.0.0-beta7 Pre-release 10–11 Feb 17, 2025
1.0.0-beta6 Pre-release 9–10 PHP >=7.4 Mar 15, 2023