Problem/Motivation

Required check not working if more than one control by fields.

Steps to reproduce

  • Add two fields.Lets name the fields A and B
  • Add one image type field.
  • Add required dependency on image field with control by field A. Select OR in Interaction with other dependencies
  • Add one more required dependency on image field with control by field B. Select OR in Interaction with other dependencies
  • Now Image field is required if A or B or both is selected.
  • Required condition doesn't work properly. Required check works if both selected or with one field (which is last in dependencies array).
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

vikramsaini1609 created an issue. See original summary.

vikramsaini1609’s picture

Title: Conditionally required field are not working if more than one control by fields » Conditionally required is not working if more than one control by fields
liquidcms’s picture

I see the same issue on 4.0.0-alpha3

dqd’s picture

Priority: Major » Normal
Status: Active » Postponed (maintainer needs more info)

Thanks for ther report and the efforts to geive a detailed report. But there is a contradiction in the report. At least from my read.

Now Image field is required if A or B or both is selected.
Required condition doesn't work properly. Required check works if both selected or with one field (which is last in dependencies array).

Please elaborate on the way it works or not works and what you have awaited to happen.

Apart from that: I decreased the issue priority. Descriptions of the Priority and Status values can be found in the Drupal project issues documentation.

lukasz.tyc made their first commit to this issue’s fork.

joelpittet’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

No response in 2 years, I am closing this issue. Please reply or re-file an issue if it still relevant.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.