Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
- Seeking new maintainer
The current maintainers are looking for new people to take ownership. - No further development
No longer developed by its maintainers. - 4 sites report using this module
- Created by rafenden on , updated
- This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.