How to retrieve values of multiple selected options in HTML <select>? #719
Unanswered
jamesrhester
asked this question in
Q&A
Replies: 2 comments
-
@jamesrhester If you have multiple inputs with the same name, you need to add the |
Beta Was this translation helpful? Give feedback.
0 replies
-
This doesn't seem to work. For the html (part of a form): <select id=instrs name=instrs[] multiple>
<option value=E>E</option>
<option value=W>W</option>
<option value=K>K</option>
<option value=P>P</option>
</select> Submitting with the first two options selected and calling The relevant section of the raw payload is
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As far as I can tell, if multiple options are selectable in an HTML form, then postpayload(:id) will only return the last value selected, instead of a list of selected values. What is the recommended way to work with multiple options in HTML blocks?
Beta Was this translation helpful? Give feedback.
All reactions