This project is not covered by Drupal’s security advisory policy.
This module allows you to mark form fields to be dependent of another form field. Using #dependency
you can provide an array to point to the field that needs a value before the field with setting #dependency will be displayed. The naming of the array should be the same as the way you would fill an element's #parents
array. For example, an input with name="author[uid]"
needs to be pointed like array('author', 'uid')
. Any requirements of the dependency field is also handled correctly and only throws an error when the field is required by both the dependency and the #required
setting.
Javascript implementation helps with collapsing/expanding the neirest <div class="form-item">
when the field is not required.
This module provides the basic functionality for the webform_dependencies module that allows for dependency for webform components.
This module's development is sponsored by Dutch green political party GroenLinks.
Project information
- Module categories: Developer Tools
- By teezee on , updated
- This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.