Multi Field Fix

Categories

Component ID

1549896

Component name

Multi Field Fix

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

The trouble with fields in drupal with a limited number of items (cardinality), is they always show all of those field inputs, regardless of whether they are set. This can make form's unnecessarily lengthy.

In drupal 6, the CCK module could be patched to fix this problem, but at the time of writing, there is nothing that exists for Drupal 7.

This module is a very basic module that tries to solve the problem without hacking core. It does have some issues, in that there's no remove button for the empty fields (you either need to clear out the text or set them to empty), but it meets the basic need of only display the form inputs that are needed, and validating the number of form inputs.

This project has been created as a sandbox for now, as I'd like to get some feedback on the methods used in the module.