Jump to content

fabianmoreno01

Member
  • Posts

    7
  • Joined

  • Last visited

Everything posted by fabianmoreno01

  1. @paul2009 and @humxahafeex, actually there was a way to fix it and redirect from within the iFrame. The following piece of code was provided by the forms website (I replaced the form ID with --- in the code here). It doesn't seem to always work, but it sometimes does. I'm not sure yet why it's still inconsistent. <div formsappId="---"></div> <script src="https://my.forms.app/static/iframe.js" type="text/javascript"></script> <script> new formsapp('---', { width: '100%', height: 'formHeight' }); </script>
  2. Would I have the same problem with forms from other websites (i.e. Typeform)?
  3. Hey Paul, thanks for your answer! Is there any way to solve this while keeping the form on my site? I'd like to keep it at this address and leave the disclaimer at the bottom of the page... Maybe one of these could be of use? - https://stackoverflow.com/questions/580669/redirect-parent-window-from-an-iframe-action - https://htmldom.dev/communication-between-an-iframe-and-its-parent-window/ - https://stackfame.com/access-parent-of-iframe-javascript - https://help.alchemer.com/help/break-out-of-iframe - https://stackoverflow.com/questions/11332247/redirect-from-iframe-using-javascript-or-jquery?noredirect=1&lq=1 - https://stackoverflow.com/questions/1378433/how-do-i-implement-cross-domain-url-access-from-an-iframe-using-javascript/1378456#1378456 (Note: I have no access to the code of the form itself, I can only tweak it in the code block on Squarespace.)
  4. Hello @humxahafeex, thanks for tweaking the code yet it's still not working... 😕
  5. Thanks @humxahafeex , I changed the code but it's still not working... (Also, I don't know if this plays a role, but I do have a piece of code in the page itself to prevent the header and footer from appearing.)
  6. Hello! I have created a Code Block on a page of my website so I can insert a survey (from the website forms.app). The code provided by the forms website is: <iframe id="" allowtransparency="true" allowfullscreen="true" allow="geolocation; microphone; camera" src="https://my.forms.app/form/61a320417d2e520c5456fd3b" frameborder="0" style="width: 1px; min-width:100%; height:500px; border:none;"></iframe> At the end of it, users should be redirected to a Thank You page (also on my site) but it doesn't work, even though the form does say the user will be redirected. The page doesn't change and the survey goes back to its 1st page. I imagine it's because the Redirect-upon-Completion is in the form's settings (i.e. in a block inside the page) rather than in the page settings itself? Or maybe it's something else entirely. Any help appreciated! (Note: I'm a smart guy but also a complete beginner at coding so I can only make use of detailed instructions when coding is involved.) Thanks!
×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.