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
This module does not work unless the control field and the target field both appear on the same form display mode.
Steps to reproduce
Create an entity type with at least two form display modes. Place the control field on one and the target field on the other. Observe that the conditions do not work.
Proposed resolution
Implement the conditions in PHP so that the access to the target field respects the conditions that have been configured even when the control field is not displayed on the current form display mode.
Remaining tasks
Implement.
User interface changes
None.
API changes
None.
Data model changes
None.
Comments
Comment #2
adammaloneComment #3
Chris Matthews CreditAttribution: Chris Matthews commentedComment #4
Liam Morland