Simple Forms Question: How to save Checkbox values in Event for Contact Form
This is an open discussion with 2 replies, filed under General.
Search
@lbradford, check the thread "Checkbox post-values". This might be a help to you.
If you want to save the values of input checkboxes I tend to add a hidden input field above each input checkbox with a default value of 'No' and target the same name attribute as the visible one.. this way, if the users doesn't enter a value it fallsback to 'No' but if they enter a value.. the visible input checkbox overrides my hidden ones as it gets fired after the hidden input for each field.
Make sense?
Create an account or sign in to comment.
I have a form with a few checkboxes and am having trouble getting these values to save, while the rest of the text input fields work fine.
Here's the truncated version of the form code:
Is there something particular I need to add when saving input from checkboxes?