File, image, and other compound fields are flagged for violating required validation even when filled

Created on 13 January 2021, over 3 years ago
Updated 3 October 2023, 9 months ago

Problem

I have an image field that is dependent on a checkbox field. The dependent field is required when the checkbox is checked. But even when the image is uploaded, I am getting an error that the image field is empty.

Steps to reproduce

  • Create a checkbox field
  • Create an image field
  • Make image field required when the checkbox is checked
  • Create a new content and check the checkbox
  • Browse image in the image field
  • Save the content and you will get an error that the image field is required.
🐛 Bug report
Status

Needs work

Version

4.0

Component

Code

Created by

🇮🇳India simar.java Chandigarh

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇫🇮Finland thatguy

    I had issues with File field conditions and fixed them with this patch but it only applies for file fields. This issue would need more attention.

Production build 0.69.0 2024