Report Unchecked Items in Email from Checklist

By: Greg Primrose | Asked: 08/29/2024
ForumsCategory: General questionsReport Unchecked Items in Email from Checklist
Greg Primrose asked 3 months ago
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. 
1 Answers
Victor Font answered 3 months ago
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.
Victor Font replied 3 months ago

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.

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right