- Issue created by @piotrkonefal
- Status changed to Closed: won't fix
9 months ago 12:01pm 3 December 2023 - πΊπΈUnited States jrockowitz Brooklyn, NY
Attached is an example webform that I used to understand the issue.
If you are adding only one condition the only valid 'operator' is 'All' because 'Any' or 'One' requires multiple elements to work as expected.
In code, the 'any' and 'or' is inserted between the elements.
both: '#type': textfield '#title': both '#states': visible: - ':input[name="files[file]"]': filled: true - or - ':input[name="textfield"]': filled: true
On a related note, I am not sure the file element supports the 'filled' trigger.
I don't think there is anything to address or fix. We document this nuance but no one has noticed it or complained and it is probably fine AS-IS.