Module Description
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'), ], ];
Project Usage
1512
Creation Date
Changed Date
Security Covered
Not Covered By Security Advisory
Version Available
Production
Module Summary
This module solves the problem of creating a multi-value form element that wraps any number of form elements and allows for re-ordering with drag-and-drop functionality.
Data Name
multivalue_form_element

OPENAI CHATBOT

OPENAI CHATBOT

08:38:28
Generic Chatbot
Hi, I'm a Drupal module expert powered by OpenAI, answering your questions about the Drupal module ecosystem. How can I be helpful today? Please note that we will log your question.