How to prevent a field's value being saved on submitting?

By: Dick Wynne | Asked: 12/09/2024
ForumsCategory: How-toHow to prevent a field's value being saved on submitting?
Dick Wynne asked 2 days ago
For example, I use a toggle to display explanatory text, and a text field to let users search a data tree. Neither the toggle nor the text field needs its value to be saved on submitting the form. Any ideas?
1 Answers
Victor Font answered 2 days ago
Formidable does not store empty values. Remove the values you don't want from the $_POST array in the frm_pre_create_entry hook: https://formidableforms.com/knowledgebase/frm_pre_create_entry/

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