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.
Problem/Motivation
I am trying to create a node type with a dependent field that depends upon two other fields. The logic I have specified is [(a or b) and c] but it is being interpreted as [(a and b) and c].
Here's what my Manage Dependencies table looks like:
dependent | dependees | description | |
---|---|---|---|
field_confirm | field_options | AND | field_confirm is visible when field_options has at least one of the values: 1, 2. | field_target | field_confirm is visible when field_target has value "1". |
However, field_confirm is only visible when
field_options has ALL the values: 1, 2
AND
field_target has value "1".
field_confirm is a Boolean with a Single on/off checkbox.
field_options is a List (text) with Check boxes/radio buttons (unlimited values can be selected)
field_target is a List (text) as a Select list (only 1 value can be selected)