Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

datafield

318 sites Security covered
View on drupal.org

Multiple Data Field is a Drupal module that allows you to create custom fields with multiple values under the default table form.
Base on module triple field
and paragraphs table
But it offers additional features.

Please note: all custom fields are not entity fields, so you cannot benefit from field widget, field renderer, or the entity formatter. It's just for the data.

How it works

To use the Multiple Data Field module, follow these steps:

  1. Step 1: Define the storage column machine name with an unlimited value.
  2. Step 2: Define field columns setings
  3. Step 3: Define in field widget for each columns
  4. Step 4: Define in field display for each columns

Supported storage types

Multiple Data Field supports various storage types, including:

  • Numeric: Int, float, decimal
  • Text: Varcha, Text, Json
  • Boolean
  • Date iso format: varchar (22)
  • Date mysql format: Date, datetime, time, Year
  • entity reference: Taxonomy, Node, User, ..., with Views reference
  • File

Supported widgets

Multiple Data Field supports various widgets, including:

  • Numeric: Textfield, range, number, select list, hidden
  • Text: Textfield, Textarea, Text full html, Json editor, hidden
  • Boolean: checkbox
  • Date iso format: Date, datetime, month, week, year
  • Date format: Date, datetime, timestamp, time, year
  • Entity reference: List, auto commplete, radiobuton, hierachical select (taxonomy only)
  • File: file manager

Supportes formatters

Multiple Data Field supports various formatters, including:

  • Table (Boostrap-table, datatable) support field permission for create edit on fly
  • Chart google chart, hightchart
  • Unformat list order
  • Details

Shortcuts

  • Alt+N : New row
  • Ctr+D : Duplicate row
  • Ctr+↑ : Up row
  • Ctr+↓ : down row
  • Move with arrows ↑ → ↓ ←: up down left right

Some issue

  • The time of the field date (iso and unix date), which has a widget time, needs to be checked with the time zone. It has not been tested in all cases.
  • Field file may have problems when deleting old files, and an ajax call must be sent to remove the fid in field columns.

Plugin for developper

- You can create custom modules and define your field types, field widgets and field formatters. It can auto detect in your_module/src/Plugin/Data Field/[FieldType|FieldWidget|FieldFormatter]

In progress

Module is still under development, and the following features are currently in progress:

  • Edit in the field (in display mode)
  • Improve compatibility with the jsonapi , restful module. (Json with entity or file so ugly, It have to query with value entity.field_datafield.subfield.value[0].name)

Any help you can give will be greatly appreciated

The module data field version 2.x

In version 2.x field storage has changed, when entering the field storage settings section after setting up the subfield, you can change/add/remove the subfield name but you should be careful, not to do it too quickly before the ajax finish every time it changes.
Don't change the subfield name and cardinality to be unlimited at the same time. Beaucase ajax in Drupal 10.2 will reset the default field storage to the value of the subfield.
Section Field settings work normally, many error messages may come from the required field. check on checkbox the default value you can see.

Nothing much changed between version 3.x vs 2.x, mainly remove datafield.module switch to hook object which has been supported since drupal 11

Do you like this module? Show your appreciation by buying me ☕.

Activity

Total releases
5
First release
Jan 2025
Latest release
6 months ago
Release cadence
65 days
Stability
100% stable

Release Timeline

Releases

Version Type Release date
2.0.12 Stable Oct 16, 2025
2.0.11 Stable Apr 18, 2025
2.0.10 Stable Feb 18, 2025
2.0.9 Stable Feb 15, 2025
2.0.8 Stable Jan 31, 2025