[#States API] Conditionals based on select elements don't work.

Created on 20 October 2022, about 2 years ago
Updated 8 April 2024, 9 months ago

Problem/Motivation

I tried creating a webform where a field only shows if a select element has a certain value selected. When I select that value, the conditionally shown field is not actually shown, yet it prevents form submit during validation.

Steps to reproduce

  • Create a webform.
  • Add a select element with some values. Allow unlimited values (idk if this is necessary)
  • Add another field, like a text field, and make it Visible if the Select element has a certain value. Make it required.
  • View the webform and select the value that should show the 2nd field.
  • The field doesn't show, and clicking Submit causes a validation error for the missing field.

An exported webform YAML is attached.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: outdated

Version

6.2

Component

Code

Created by

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.

Production build 0.71.5 2024