• Resolved sanderson123

    (@sanderson123)


    Hi there,

    so I embedded the form, and it works. However when I click through the form, the complete wordpress site reloads and scrolls back to the top. I would like to avoid that and only load the next site of the form.

    How can I do that?

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Mike Walsh

    (@mpwalsh8)

    The page reloads because the continue and previous buttons are actually submit buttons. Each time you press next or previous, the content of the page is submitted to Google which sends a response back to the plugin. The response is either the next page or previous page along with the saved sate of any entered data to that point.

    If you’re looking for a true AJAX implementation for the form, that isn’t something which is supported by the plugin.

    Thread Starter sanderson123

    (@sanderson123)

    Hi Mike,

    thanks for the swift reply. Ok, I understand.

    How would it be possible to use the Google Forms Plugin in an iFrame?

    I can include the standard google forms in Iframes and like this circumvent the reloading of the page. But I still have the google branding and not the customizable design from your plugin which I would prefer. So I think when I can put the short-code [wpgform id=’323′] into an Iframe this should serve as a nice workaround. However I only generate empty Iframes. Any idea?

    Thanks
    Simon

    Plugin Author Mike Walsh

    (@mpwalsh8)

    It would not be possible to use the short code in an iframe. An iframe expects and entire HTML document. The shortcode gives you a chunk of HTML which is inserted into the page being rendered. The only way I can think of doing what you propose (use an iframe) would be to do the following:

    1. Create a bare bones template on your WordPress site for your theme – no header, no sidebar, no footer – a bare bones template.
    2. Create a page using that template which just has the short code on it.
    3. Navigating to that page would show the Google Form but almost nothing else from your WordPress site.
    4. Use the permalink for that page as the source for the iframe.

    In theory this would work but I’ve never tried it and it pretty much defeats the purpose of the Google Forms plugin. I wrote it explicitly because I didn’t want to embed a Google Form with an iframe which at the time, was the only solution I could find.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Complete Site Reloads when continuing in Form’ is closed to new replies.