Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

Simple Add More

16,035 sites Security covered
View on drupal.org

This module improves the user experience for editing fields that allow multiple values but have a maximum limit. It hides extra empty fields by default and shows an "Add another item" button to reveal them one by one, making it easier for content editors.

Lullabot-sponsored project

This module is sponsored by Lullabot, and we keep a special eye on its maintenance. Read the Architecture Decision Record on why we use this module.

This module simplifies the multi-value widgets when they have fixed cardinality (max number of values allowed).

By default, Drupal core will expose on the form the maximum number of values allowed. This means that if a field can have up to 5 items, for example, the form will have 5 empty elements. The "Add another item" button that builds another item using AJAX is only included when the field has unlimited cardinality.

This often leads to bad UX for editors:

There is a core issue to improve this in core: #1156338: Fixed maximum number of field values, but use «add more» similar to when cardinality «unlimited» is used

While the above issue is trying to also use the AJAX button on fixed-cardinality fields, this module takes a different approach and adds clientside JS so that extra empty elements are hidden, and only the elements below will be displayed:

- On empty fields, only one empty element
- On non-empty fields, only the non-empty elements

This module provides an "Add another item" button to reveal one new empty element at a time.

All interaction happens in the browser, there are no server/AJAX calls necessary.

Activity

Total releases
1
First release
Dec 2024
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Release date
1.3.2 Stable Dec 4, 2024