WPForms: Placing Confirmation Message Post-Form Submission
-
function wpf_dev_frontend_output_success($form_data, $fields, $entry_id) { ? ? if (absint($form_data['id']) !== *****) { ? ? ? ? return; ? ? } ? ? unset( ? ? ? ? $_GET['wpforms_return'], ? ? ? ? $_POST['wpforms']['id'] ? ? ); ? ? unset($_POST['wpforms']['fields']); ? ? wpforms()->frontend->output($form_data['id']); } add_action('wpforms_frontend_output_success', 'wpf_dev_frontend_output_success', 10, 3);
Seeking to modify the display location of the WPForms success message to appear underneath the submitted form. Wondering if it’s feasible to relocate the success message to a position below the form upon submission.
I have tried this 1) add_action( ‘wpforms_frontend_output_success’, ‘wpf_dev_frontend_output_success’, 0, 3 );
2) add_action( ‘wpforms_frontend_output_success’, ‘wpf_dev_frontend_output_success’, 1000, 3 );
None of them worked.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘WPForms: Placing Confirmation Message Post-Form Submission’ is closed to new replies.