PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Popup and return midway through filling out form

  1. Hi,

    I have a question about javascript and responses within one of my gravity form pages. I will try to explain it as easy as possible.

    I have a 3 page form on my website. On the second page I have to collect some data that will be captured via a popup window which is processed on an external server. The user clicks a link which fires a popup and when the external popup is finished, it allows me to send the data back to a return_url so I can do something with the new data. I want to place this data into the form somehow and then traverse over to the next page (page 3) of my form.

    This seems like it might be similar to the Paypal Standard Addon, but I want to know can this be done half way through filling out a form? How do I come back to the second page and return some details (via javascript)? How can I accomplish this? What return URL could I use?

    I appreciate all the help I can get. Thanks.

    Posted 11 years ago on Thursday June 7, 2012 | Permalink
  2. You won't be able to return to the second page using a return URL. The paging system uses a hidden field that gets posted with the form and that controls the paging that is displayed.

    I am not sure of the details of your implementation, but following is how I can see this working.
    On page 2 of your form you will add some hidden fields that will hold the return values from that external form. When that popup gets submitted by the user, you need to set the return URL, not to the form, but to another page that will create javascript code to place those variables into your form (since you are running in a popup, the form will still be on page 2 when the popup gets submitted) and forces the form to submit and go to step 3.

    I hope this helps.

    Posted 11 years ago on Monday June 11, 2012 | Permalink
  3. Thanks for the reply Alex. I will look into it. Once I have figured out how to tackle the issue. I will post up my results.

    Posted 11 years ago on Tuesday June 12, 2012 | Permalink