Tirna or anyone else here,
My form sends data to a third party site, which limits the number and types of fields I can use for form submission. So the processing has to be client-side. The listbox could have 50 to 100 options that regularly change. I want to concatenate the selected values for the external service. That way I only have one field on the service where I can search on "dog" and find all records with that value regardless of whether it was the only selection option or one of several.
What I need in particular -- I'm open to any solution:
A multidimensional array of listbox option values that represent the HTML text (must be defined) and option values (optional, if not provided the value is the same as the text) for each listbox.
A form with listbox where the user can select multiple options.
When the form is submitted:
A. The selected items are concatenated with a space, like "cat dog pig"
B. The concatenated string is sent as the value for the listbox field.