Hey everyone, I'm using a third party form on my website to track signups and want to redirect to a custom thank you page. The form is embedded using HTML that contains the redirect URL within. The thank you page is not hosted on my domain nor is it on the same domain as the third party form website.
Step 1 Form Landing Page
Step 2 Submit Form
Step 3 Thank you Email sent
Step 4 Redirect to custom thank you page
The breakdown is between steps three and four.
The redirect fires, but wix prevents it from accessing the third party website and it fails reading:
Refused to display URL "in a frame because it set 'X-Frame-Options' to 'sameorigin'"
I thought the solution would be to disable the sandbox attribute within the iframe and add an event code to the element that initiated the redirect when upon form submission.
I tried to disable the sandbox attribute by adding the code to the HTML in the embed section but it doesn't work -- I suspect because there are no iframe tags in that part. After using developer tools I was able to locate them on the page, but they are hidden and I am unsure if Wix will allow you to even access them.
example: sandbox="allow-top-navigation allow-same-origin allow-forms allow-popups allow-scripts allow-pointer-lock"
I also tried to manually ad the redirect using an event code to the page element via Corvid in the hopes that it would work.
I am self taught on this stuff and assume this is somewhat of a common problem?