• Resolved atlanteh

    (@atlanteh)


    Hi. Great plugin!
    Can you please add a filter just before you save the $formData so we can decide what fields we want to exclude? There are some fields that I want to send, but not save as they are empty/not relevant.
    Something for this sort:

    $filteredFormData = apply_filters(‘cfdb7_filter_data_to_persist’, $form_data);
    $form_post_id = $form_tag->id();
    $form_value = serialize( $filteredFormData );

    I wanted to create a pull request, but it seems the github repo is abandoned.
    Thx a lot!
    Roi.

    • This topic was modified 7 years, 4 months ago by atlanteh.
    • This topic was modified 7 years, 4 months ago by atlanteh.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter atlanteh

    (@atlanteh)

    Maybe also add in the $formTag or the form id:

    $filteredFormData = apply_filters(‘cfdb7_filter_data_to_persist’, $form_data, $form_tag);

    Plugin Author Arshid

    (@arshidkv12)

    I will add it as soon as possible.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘filter saved fields’ is closed to new replies.