dinesh2018wp
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
I can get form feilds with $_POST
is this correct way ?
I am missing argument in add action, it shoud be like this
add_action( 'forminator_form_after_save_entry', 'function_Name', 10, 2 ); function function_Name($form_id, $response) { error_log(print_r($response['select_field'], true)); $entry = Forminator_Form_Entry_Model::get_latest_entry_by_form_id( $form_id ); error_log(print_r($entry, true)); }$response doesn’t return the form fields
log of $response
Array ( [message] => Thank you for contacting us, we will be in touch shortly. [success] => 1 [form_id] => 19 [behav] => behaviour-thankyou [fadeout] => true [fadeout_time] => 5000 [select_field] => Array ( ) )to get form fields using this
$entry = Forminator_Form_Entry_Model::get_latest_entry_by_form_id( $form_id );this return the fields of last submitted form but this may cause issue when 2 more form summitted at same time , will you please help with correct way to get summited form fields
Viewing 2 replies - 1 through 2 (of 2 total)