Hello
We use checkbox fields on Formidable Forms to create checklists for equipment.
So for example, a checkbox might say:
Trunk:
Item 1
Item 2
Item 3
Item 4
Right now, if all items are present, I have it set up so that if all 4 items are present, there is a 5th option "All Items Present" but it's a bit of a pain and a lot of people forget.
I would love to have the form be able to send me an email that if people check Item 1, 3 and 4, the email should show the opposite of what's selected, so Item 2.
You could solve your problem a lot easier with a simple jQuery snippet added to the form. I would use jQuery to monitor the checkboxes and when all items are checked, auto-click "All items present". If someone unchecks an item, clear the all checkbox as well. You can also do this with PHP after submit using a Formidable hook before form is actually created. You can manipulate data with custom code.
Your email question may also require some custom code because I don't know that you can tell what options haven't been checked by the form data returned in the $_POST associative array. You would have to determine that somehow in code. Or again, you can take advantage of jQuery to store what hasn't been selected in a hidden field. Then you can include that hidden field in your email.
Please login or Register to submit your answer