jen
06/02/2026, 11:03 PM<select name="platforms[]" id="platforms" multiple style="height: 110px;">
<option value="1">Platform 1</option>
<option value="2">Platform 2</option>
<option value="3">Platform 3</option>
</select>
The form includes several other fields that are working as desired (dates, file uploads, single selects, etc).
My issues is that upon submit on the form (I have a custom HTML button that simply calls jQuery('#main_form').submit();), only the FIRST selected value of the multiselect comes through in the context.request.parameters; object. All the other data from other fields comes through as expected.
I’ve tried with and without the [] and still no luck. Any suggestions as to what I might be overlooking here?Anthony OConnor
06/03/2026, 12:52 AMplatforms[]=1&platforms[]=2
NS's param object can't handle that cos its just key/value pairs which is why you're only getting oneAnthony OConnor
06/03/2026, 12:52 AMmultipart/form-data ? you said you had files?Anthony OConnor
06/03/2026, 12:55 AMcontext.request.files
const selectedPlatforms = context.request.files['platforms'];
and yeah get rid of the [] cos eww 😛jen
06/03/2026, 2:44 PMmultipart/form-data and I can retrieve the files without issue.jen
06/03/2026, 2:44 PMjen
06/03/2026, 2:45 PMjQuery to store the selected values (concatenated) in a hidden <input> field, which is working, but an annoying workaround.Anthony OConnor
06/03/2026, 3:01 PMrequest.files
yeah that way works too, just do it yourself essentially 🙂jen
06/03/2026, 3:04 PMAnthony OConnor
06/03/2026, 3:06 PMplatforms in there?jen
06/03/2026, 3:16 PMbattk
06/03/2026, 4:38 PMbattk
06/03/2026, 4:44 PMSteven Scheppelman
06/03/2026, 5:42 PM