Hi,
I am trying to find a way for the Redirect URL from a form extension to open in a new window. Our setup is as follows:
- We have a portal menu item which is a webpage embedded within the portal (the portal is embedded on a website).
- On that embedded webpage is the said form extension embedded within it.
- On submission of this form, the user is redirected to another webpage URL (according to the form extension’s settings) which opens within the portal without any issues.
- This final webpage contains a link to a payment gateway which the user needs to click on to proceed to checkout.
Unfortunately, the payment gateway URL is not opening within the account portal - it looks like it needs to open in a new tab for it to work. I have tried every which way possible to open the redirected URL in a new tab, including adding various “target” attributes to the URL on the embedded webpage and nothing seems to work - it simply isn’t opening in a new tab.
I assume this is because within the form extension’s settings, “Embedded Form Redirect Type” (set to “Replace top window”) is limiting the opening of the URL in a new tab - we have tried both options. I am wondering if this problem could be solved with a third option in the form extension’s settings to redirect the user to the redirect URL in a new tab.
I know there is the option to set portal menu item (in point 1 above) to open “Open in a new tab”. However this is a security issue because the form has the user’s record ID prepended to the URL and there is potential for abuse of the form.
Does anyone know of any other way to open the redirect URL (point 3) in a new tab according to the scenario above?
Thanks.