Dependent Fields

The ability to show/hide form items depends on the value of another form item

This module intent to simplify long form submission by your sites' users. Sometimes the user does not have to fill some form fields that may divert him/her from the most important field. Websites in which there are large forms may find this module helpful. You can use it with any kind of field type and it encapsulates itself into the CCK field's admin page.

The Dependent Field module also allows you to determine whether the dependent "child field" will be attached right after its "parent field" in the form or not. This way the user can easily see how the his/her choices affect the form.

The module also allows nested fields dependencies, which means that a field can depend on the value of a certain field that also depends on another field. This way you can start your node edit page with few questions and the user will explore the node form depending on his/her choices. This module also supports the Related Subform module. It is possible to hide/show a subform element depends on a field's value.

For now, Dependent Fields only supports values from single on/off checkboxes, a group of checkboxes/radio buttons or select fields.

Future developments

  • the ability for fields in a subform to depend on the parent form fields' values
  • multiple dependencies and visibility chaining

As always, please be cautious when using development modules on production sites.

Releases

Official releasesDateSizeLinksStatus
5.x-1.4-beta2008-May-3112.9 KBRecommended for 5.xThis is currently the recommended release for 5.x.
Development snapshotsDateSizeLinksStatus
6.x-1.x-dev2009-Oct-1611.13 KBDevelopment snapshotDevelopment snapshots are automatically regenerated and their contents can frequently change, so they are not recommended for production use.


 
 

Drupal is a registered trademark of Dries Buytaert.