Tag: Form Action

×Warning: This tutorial was created 2047 days ago. Some of the information may be out of date with more recent versions of Formidable. Please proceed with caution and always perform a backup before adding custom code.

This is the solution provided by authors: https://Formidableforms.com/knowledgebase/javascript-examples/javascript-after-form-submit/

However, it didn't work for me in Chrome (pop-up window blocked).

I found that adding the attribute target="_blank" to the form, opens a new tab on submit.

(https://Formidableforms.com/knowledgebase/frm_form_attributes/)

add_filter( 'frm_form_attributes', 'add_custom_form_attributes', 10, 2 );
function add_custom_form_attributes( $attributes, $form ){
if ( $form->id == 123 ) {
$attributes .= 'target="_blank"';
}

return $attributes;
}

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