[D7] Field conditional state

Created on 27 February 2011, almost 14 years ago
Updated 24 October 2024, about 2 months ago

It has been well established that peem83 has done everything in his power to collaborate with the similar Conditional Fields module, let's please not discuss possible duplication any further.

Link to sandbox: http://drupal.org/sandbox/peem/1073388

Original report by [username]

Hi,

I've made a Drupal 7 module which I called This module allows you to set the '#state' form field attribute for based on value selected in other entity form fields () with allowed values.
Logic of the module is similar to Conditional Fields but functionality quite extended.
You can set five kinds of the '#state 'attribute for controlled field:

  • - the controlled field will be visible if value from the control field corresponds to the values selected in the field conditional states settings form for that specific controlled field,
  • - the controlled field will be invisible if value from the control field corresponds to the values selected in the field conditional states settings form for that controlled field,
  • - the controlled field will be enabled if value from the control field corresponds to the values selected in the field conditional states settings form for that controlled field,
  • - the controlled field will be disabled if value from the control field corresponds to the values selected in the field conditional states settings form for that controlled field,
  • - the controlled field will be required if value from the control field corresponds to the values selected in the field conditional states settings form for that controlled field.

      Module support functionality for the 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)
📌 Task
Status

Fixed

Component

module

Created by

🇳🇱Netherlands peem83

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024