How do I pass values to an EMBEDDED form

  • PinkIguana
    Asked on April 28, 2017 at 9:17 PM

    I am trying to pass values from form 1 to form 2, but form 2 is embedded in a webpage. So what is the URL sturcture? I know how to pass values between forms, but it is different when the second form is embedded. For example, the if the form is on a page called http://abc.com/page I do not know how to access the form itself. Is it http://abc.com/page_name/[form_id] ???

    Can someone pls answer my question without sending me to documentation on the site that doesn't answer my question? Below is the last answer I was given, which is not what I was asking about. I need to know how to address or access a form that is EMBEDDED in a custom Thank You page (ie, like http://abc.com/thank-you/).

     

    Answered by jonathan

     

    You must be referring to the method described on our user guide: 

    https://www.jotform.com/help/164-Pass-Value-to-Another-Form-with-URL-Encoding

    Let us know if you need further assistance.

  • Chriistian Jotform Support
    Replied on April 29, 2017 at 12:32 AM

    May we know what embed method you have used for your form? I checked the site links (http://abc.go.com/thank-you/) and (http://abc.go.com/page) but I did not found the second form so that I may able to know what embed method you have used.

    To pass the data from one form to another form, please refer to this guide: https://www.jotform.com/help/351-How-to-Automatically-Pass-Form-Data-to-Another-Form. But you need first to know how to prepopulate fields using the URL parameters to be able to pass the data from one form to another form. Please refer to this guide on Prepopulating Fields to Your JotForm via URL Parameters.

    Next, if the second form is embedded on the web page, for example, the embed method used is iFrame method, then you can just use URL parameter directly on the embedded form URL.

    Example:

    <iframe id="JotFormIFrame" onDISABLEDload="window.parent.scrollTo(0,0)" allowtransparency="true" src="//form.jotformpro.com/form/71146686584972?&name=Test" frameborder="0" style="width:100%; height:465px; border:none;" scrolling="no"></iframe>

    Where the higlightned form link is the prepopulated form.

    If you need further assistance, please let us know.
    Regards.