The Community forums are being phased out in favor of a new Slack group.
Add your email address below to get an invitation to join the community slack group

Slack Signup
Newsletter Optin
Help Desk

Redirect to new/blank tab?

Labels

This Discussion is public

Notifications

I'm using a redirect action on a Submit button to take the viewer to a secure login area, and it works great, but I need it to redirect to a new tab so that I'm not taking my viewer away from the site. How do I do that?

I don't think you can do that. There is a filter for changing the URL: https://formidableforms.com/knowledgebase/frm_redirect_url/, but this filter only processes the raw URL.

In order to open a URL in a new tab, you have to use the window.open(url, target) command in JavaScript or include the target in a link. Neither of these are possible with Formidable's URL redirect.

The frm_redirect_url is applied at line 1456 in FrmFormsController.php. The code that provides the redirect immediately follows the filter application. The redirects are handled either by Ajax, wp_redirect, or JavaScript depending on certain conditions. None of these methods allow for the inclusion of a target window or tab.

Thank you so much, vfontjr! Since we want all of our forms to redirect to a new tab, I could update the FrmFormsController.php. I'm using Pro, so I was assuming it was the FrmProFormsController.php but I'm not seeing anything referencing frm_redirect_url on that page. Are you familiar with where I would make this change in Pro?

Thank you again for your help! :)

Pro doesn't redirect. The redirects are handled where I told you in the base product.

Discussion closed.