Conditionally required is not working if more than one control by fields

Created on 8 January 2024, 10 months ago
Updated 2 March 2024, 9 months ago

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
  • Add one more required dependency on image field with control by field B. Select OR in
  • 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).
🐛 Bug report
Status

Postponed: needs info

Version

4.0

Component

Code

Created by

🇮🇳India vikramsaini1609

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @vikramsaini1609
  • 🇨🇦Canada liquidcms

    I see the same issue on 4.0.0-alpha3

  • Status changed to Postponed: needs info 9 months ago
  • 🇫🇷France dqd London | N.Y.C | Paris | Hamburg | Berlin

    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.

Production build 0.71.5 2024