formio / formio.js

JavaScript powered Forms with JSON Form Builder
https://formio.github.io/formio.js
MIT License
1.9k stars 1.07k forks source link

[BUG] Multiple values selection in a html5 select component doesn't work #4874

Closed simonlemo closed 9 months ago

simonlemo commented 2 years ago

Environment

When using the html5 widget for a select component that accepts multiple values, only one of the selected value get saved

Steps to Reproduce

  1. Create a form with a select component using the html5 widget that accept multiple values
  2. Use this form and select more than one option
  3. Only one of the selected values will be displayed

Expected behavior

All the selected values should be saved

Observed behavior

Only one value is saved

Example

https://jsfiddle.net/0atLb79u/2/ Select more than one option, only one of the selected value will be displayed in the console

daneformio commented 9 months ago

Closing this thread as it is outdated. Please re-open if it is still relevant. Thank you for your contribution!

pboucher1960 commented 2 months ago

I believe this bug is this relevant. I posted a bug myself with this same issue here . If it's not possible to have multi select capabilities with an HTML5 widget, this option should only be available when "ChoicesJS" is selected as a widget type.