I'm needing a form that provides a list of 6 checkboxes as choices and would like to validate the form so that at least one of the checkboxes are selected before the form can be submitted.
I see that there is a Require ___ options to be checked property. But when I submit the form to my database backend, I'm only seeing the last checked value selected instead of all of them.
When looking at the code, it looks like all items share the same name. Ideally each item needs to have a unique name, but I can deal with this on the backend if all values for all checkboxes were to append into the one named item. Instead, I just see the value of the last checked item instead of an accumulation of all of them.
Can anyone explain how this should work?
Thanks!
Validating that at least one checkbox...
Checkboxes only get submitted when their checked. You could use some JQuery to target hidden inputs.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.