Only the first tableselect element option “counts” for conditional states

Created on 13 September 2022, almost 2 years ago
Updated 20 April 2024, 2 months ago

Problem/Motivation

Steps to reproduce

  • Create a webform and add a textfield element (say Fruit Name)
  • Add a another element of type tableselect. (say Fruit Category) with options (say 1 => Summer, 2 => Spring, 3 => Winter)
  • Make the Fruit Category field mandatory
  • Add conditional states to make the Fruit category field visible only when the Fruit Name is filled
  • Now go to the web form, and add a submission.
  • Fill the First Name field (say Benedict Joseph)
  • Now the Fruit Category field will be visible. For Fruit Category select the second and /or third option (Spring or Winter) without selecting the first option.
  • The form submission fails unless we add the first option

Proposed resolution

As a temporary work around we used checkboxes type instead of tableselect type

Remaining tasks

Patch
Review
Commit

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

6.2

Component

Code

Created by

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

Merge Requests

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.69.0 2024