This project is not covered by Drupal’s security advisory policy.

It's a fork of Conditional Fields module that works with any Drupal elements.

Provides two render properties: #visible_when and #required_when.

Examples:

$form['source'] = [
  '#title' => t('How did you hear about us'),
  '#type' => 'select',
  '#options' => [
    'internet_search' => t('Internet search'),
    'friend' => t('From a friend'),
    'other' => t('Other, please specify below'),
  ],
];

$form['source_other'] = [
  '#title' => t('Other source'),
  '#type' => 'textfield',
  '#visible_when' => [ // NEW PROPERTY
    'source' => 'other',
  ],
];
Supporting organizations: 
Initial development

Project information

  • caution Seeking new maintainer
    The current maintainers are looking for new people to take ownership.
  • caution No further development
    No longer developed by its maintainers.
  • chart icon4 sites report using this module
  • Created by rafenden on , updated
  • shield alertThis project is not covered by the security advisory policy.
    Use at your own risk! It may have publicly disclosed vulnerabilities.

Releases