This project isn't supported anymore. We won't provide any updates or patches! The successor can be found here: Field Conditional States.
----

With field conditional state module you can set #state form field attribute based on value selected in other form fields. Module splits fields into two types:

  • control field - field which set #state attribute based on the value from that field,
  • controled field - field for which #state attribute is set based on the value from the control field,

For controled field you can set five kinds of states attribute:

  • visible - controlled field is visible when value in control field corresponds to the values selected in the field settings form for that controlled field,
  • invisible - controlled field is invisible when value in control field corresponds to the values selected in the field settings form for that controlled field,
  • enabled - controlled field is enabled when value in control field corresponds to the values selected in the field settings form for that controlled field,
  • disabled - controlled field is disabled when value in control field corresponds to the values selected in the field settings form for that controlled field,
  • required - controlled field is required when value from control field corresponds to the values selected in the field settings form for that controlled field.

Module supports AND/OR functionality for control fields which means:

  • AND - all choices must be selected to control the filed (example: field A will be visible when in field B option 1 and option 2 is selected)
  • OR - any choice will control field (example: field A will be visible when in field B option 1 or option 2 is selected).

Required Drupal 7.14 or higher

Project Information

Downloads