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
Redirect to new/blank tab?
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?
January 19, 2019 at 7:29 am
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.
January 19, 2019 at 5:11 pm
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! :)
January 20, 2019 at 8:11 pm
Pro doesn't redirect. The redirects are handled where I told you in the base product.
Discussion closed.