Reset Checkbox After Submission

By: Michael Thena | Asked: 03/24/2024
ForumsCategory: Code HelpReset Checkbox After Submission
Michael ThenaMichael Thena asked 8 months ago
Looking for a way to reset a checkbox field that has a single checkbox.  It's a directory form that the purpose of the checkbox is to trigger an email notification upon submission - then the checkbox should clear, pending the next edit.  So I don't need to store the checkbox status, but need it to trigger the email after submission only.
1 Answers
Rob LeVineRob LeVine answered 8 months ago
You can use frm_after_create_entry and frm_after_update_entry to clear the field value after it's submitted. See this specific example to give yourself a good headstart.
Michael ThenaMichael Thena replied 8 months ago

will the same code work if they are updating the form and not creating it for the first time?

Rob LeVineRob LeVine replied 8 months ago

Yes. Check out the names of the hooks 🙂

Michael ThenaMichael Thena replied 8 months ago

where do you recommend putting it - putting it in the submit button area of the customize html for that specific form just makes it show up as code on the page.

Michael ThenaMichael Thena replied 8 months ago

where do you recommend putting it - putting it in the submit button area of the customize html for that specific form just makes it show up as code on the page.

Michael ThenaMichael Thena replied 8 months ago

where do you recommend putting it - putting it in the submit button area of the customize html for that specific form just makes it show up as code on the page.

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