[#States API] Condition "visible when file filled" doesn't work

Created on 2 November 2023, 11 months ago
Updated 8 April 2024, 6 months ago

Hi,
the condition "visible when file filled" doesn't work.

Steps to reproduce the problem:
- Create a File field
- Create a Text field with condition "visible" when "file" "filled"
- Test the webform
- The Text field remains invisible even when the file is uploaded

🐛 Bug report
Status

Active

Version

6.2

Component

Code

Created by

🇮🇹Italy grimal

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

Comments & Activities

  • Issue created by @grimal
  • 🇺🇸United States jrockowitz Brooklyn, NY

    The attached webform replicates the issue.

    It is unlikely that this can be fixed.

  • 🇳🇴Norway joeboris_

    Hi,

    Sorry to revive this, but I've been trying to accomplish different variants of conditional logic with the "File" and "Document file" fields, with no success*.

    Does comment #3 entail that all conditional logic operations for file fields do not - and will not - work? Or just the "when filled" trigger/value is used? Are there other triggers, such as "Value is" which can be used successfully?

    Can these behaviours be accomplished somehow by custom code or in some other way?

    Any clarification / help / tips&tricks much appreciated!
    joeboris

    * Specifically, I need to show/hide fields and/or make fields required or read-only based on whether or not a file has been uploaded.

  • 🇺🇸United States jrockowitz Brooklyn, NY
Production build 0.71.5 2024