Skip to main content

Embedded form does not scroll back to top when submitted

Comments

4 comments

  • Vincent Labreche

    Hi,

    To successfully embed our cardholder portal in Wordpress, you will have to include our provided HTML tags directly in the 'raw' html of your own page rather than use the Wordpress iframing tool.

     

    The code should look like this:

    <div>
      <!--[if lte IE 8]>
      <script type="text/javascript" src="https://static.ackroo.com/iframe/ie8.polyfils.min.js"></script>
      <![endif]-->
      <script>var ackrooWlp="https://ppstestportal.ackroo.net/"</script>
      <script src="https://static.ackroo.com/iframe/iframeResizer.v2.min.js"></script>
      <style>iframe{width:100%;border:0}</style>
      <iframe src="https://ppstestportal.ackroo.net/en/gifts/new?iframe=true" scrolling="no" onload="iFrameResize([{checkOrigin:false,log:false}])"></iframe>
    </div>

    While it does look overcomplicated, it adds a little javascript called the "iframeResizer" which allows for dynamic resizing of the iframe.

    If that is actually what has been done, but a problem persist, could you publish it on some page and give us the link to take a look?

    0
  • Chris LaVigne

    Thank you for your reply. The code you presented is the same code as we are using on our development site.

    I have placed this code on a private page of our website for you to view. The page is slightly different, but the result is the same that the form does not scroll back up when submitted. The behaviour occurs in both Firefox and Chrome.

    https://pizzeriaprimastrada.com/2018/10/02/gift-card-test/

    password to access is:

    ackroo

    0
  • Vincent Labreche

    Hi,

    I see what you meant. There seems to be a few methodologies usable to automatically scroll the hosting page back up after a submission.

    We will need to run tests and see how best to solve for this.

     

    While I can't promise a specific ETA, I will keep you informed as to when we have a solution in place.

    0
  • Chris LaVigne

    Thanks very much, we appreciate it!

    0

Please sign in to leave a comment.