-
Notifications
You must be signed in to change notification settings - Fork 809
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using checkboxes - only the first selected option appears #12
Comments
I'm having this same issue. Also happens when multiple form elements have the same 'name'. |
Same here.. |
same here |
I got the solution for this trouble!! |
#39 pull request has been requested!! Waiting for the Author to take action on these |
The way I worked around this was to name my checkbox inputs something different. For example if we were having a contest and wanted to have all of the users names populate on which particular email voted for and have them all grouped into one column. I named my checkbox input fields "contestant" and then named a hidden input text field "contestants" which corresponds with my column in the google sheet. On submit of the form after e.preventDefault(), I just loop through the contestants and push them into an array and then join them with a comma and space afterwards and set that value to the "contestants" input value:
|
Anthony
@AnthonySpain |
Hi everyone! I'm very new to programming so please forgive me if this obvious, but how do I get all checked boxes to show up on the sheet if I use a group of checkboxes? They all use the same name, and I was hoping to get all checked boxes to appear in one cell, perhaps separated by a comma the way google forms do. But when I try, only the first option selected appears in that cell.
Help will be very much appreciated - thank you so much!
The text was updated successfully, but these errors were encountered: