Quantcast
Channel: WordPress.org Forums » [Forminator Forms – Contact Form, Payment Form & Custom Form Builder] Support
Viewing all articles
Browse latest Browse all 1454

Edit submission

$
0
0

Replies: 3

Hello,
I want to edit a field after submission, before sending the email. The value submitted form the form is a hash. I want to change the value to the an equivalent on an array.
I was testing with the following code:


add_action('forminator_form_after_save_entry', 'function_Name', 10, 2);

function function_Name($form_id, $response)

{

if ($form_id != 1276) { // change this number to your form ID

return;

}

$form_meta = get_post_meta($form_id, 'forminator_form_meta', true);

if ($form_meta) {

if (isset($_POST)) {

$_POST['text-1'] = '';

}

}

}

Thanks in advance.


Viewing all articles
Browse latest Browse all 1454

Trending Articles