Checkbox that never saves an entry

By: Michael Thena | Asked: 04/21/2022
ForumsCategory: How-toCheckbox that never saves an entry
Michael ThenaMichael Thena asked 3 years ago

Looking for a way to have a checkbox not save the input from the user in the entry.

Example: Checkbox asks user if they want to update info - if they check yes, then a post form action can happen. After form is saved, checkbox value is not and can be reset back to default of No.

Rationale - if an entry can be updated multiple times, but you don't want a post action to happen every time because the saved entry for that checkbox is now always yes, you need it to always default back to no after the form has been updated.

1 Answers
Victor Font answered 3 years ago

I would use the frm_pre_create_entry and frm_pre_update_entry hooks to unset the checkbox value before creating or updating the entry. You can use the same callback for both hooks.

Michael ThenaMichael Thena replied 3 years ago

Thank you. Checking out your links you provided. have you used this specific hook before?

Michael ThenaMichael Thena replied 3 years ago

Thank you. Checking out your links you provided. have you used this specific hook before?

Michael ThenaMichael Thena replied 3 years ago

Thank you. Checking out your links you provided. have you used this specific hook before?

Victor Font replied 3 years ago

Michael,

I've been developing expert business applications featuring Formidable Forms for more than a decade. I've used just about every developer hook Formidable offers including these two. I've also documented most of them for our Codex. (https://formidable-masterminds.com/about-the-codex/).

Do you have another question regarding their use?

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