CMS MADE SIMPLE FORGE

SmartForms

 

[#12546] multiselects with <optgroup> not passing values to output

avatar
Created By: Matt Hornsby (DIGI3) (DIGI3)
Date Submitted: Tue May 10 12:42:57 -0400 2022

Assigned To:
Version: SmartForms 2.0.0
CMSMS Version: 2.2.16
Severity: None
Resolution: None
State: Open
Summary:
multiselects with not passing values to output
Detailed Description:
In a <select> field type with multiselect, if the options are in <optgroups>,
the array passed to handlers and form output is empty.
When looking at the $form object the values are there.
Removing the optgroup tags from the field makes it work properly.


History

Comments
avatar
Date: 2022-05-19 09:17
Posted By: Morten Poulsen (silmarillion)

As a workaround (or the intended usage?) for multiselects using optgroups access
the $_FIELDNAME as an array. This works as intended.