Prepopulating fields via URL parameters using iFrame

  • FeriehusDirect
    Asked on October 22, 2020 at 9:31 AM

    Hi

    I have tried to use prepopulating fields via URL parameters. It works when I call my form directly:

    https://form.jotform.com/202891961837063?indtastReservationsnummeret=15420&indtastHusnummeret=90074

    But my form is placed on my company website, in an iframe. Is it then impossible to insert values via URL parameters?

    https://www.feriehusdirect.dk/intranet/bankinfo/


    /Jesper



  • Richie JotForm Support
    Replied on October 22, 2020 at 1:19 PM

    You can add parameters to form's URL within the iFrame embed code.

    Example:

     <iframe id="JotFormIFrame-202891961837063" title="Indtast el og vand aflæsning DK" onDISABLEDload="window.parent.scrollTo(0,0)" allowtransparency="true" allowfullscreen="true" allow="geolocation; microphone; camera" src="https://form.jotform.com/202891961837063?indtastReservationsnummeret=15420&indtastHusnummeret=90074" frameborder="0" style=" min-width: 100%; height:539px; border:none;" scrolling="no" > </iframe>

    Please check it out and let us know how it goes.

  • FeriehusDirect
    Replied on October 23, 2020 at 5:28 AM
    Hi Richie_P
    Thanks for the reply - unfortunately it does not work quite as I imagined 😁
    If I use the blue URL (in your answer) it activates my form, but it's on jotform.com's web page, not on my company web page.
    I would like my customers to fill out the form on my company website.
    Is it possible?
    Best Regards
    FeriehusDirect ApS
    Jesper Peter Leerbeck
    Maglebjergvej 13 | 2800 Kgs. Lyngby | Tlf. +45 7070 7868
    info@feriehusdirect.dk | www.feriehusdirect.dk
    Den 22. okt. 2020 kl. 19.19 skrev JotForm :
    A new response has been received:
    Answered by Richie_P
    You can add parameters to form's URL within the iFrame embed code.
    Example:
    frameborder="0" style=" min-width: 100%; height:539px; border:none;" scrolling="no" >
    Please check it out and let us know how it goes.
    View this thread on browser » Unsubscribe Thread 1603387147
    ...
  • Richie JotForm Support
    Replied on October 23, 2020 at 6:49 AM

    You can embed the Iframe code with the URL parameter in your web page.

     <iframe id="JotFormIFrame-202891961837063" title="Indtast el og vand aflæsning DK" onDISABLEDload="window.parent.scrollTo(0,0)" allowtransparency="true" allowfullscreen="true" allow="geolocation; microphone; camera" src="https://form.jotform.com/202891961837063?indtastReservationsnummeret=15420&indtastHusnummeret=90074" frameborder="0" style=" min-width: 100%; height:539px; border:none;" scrolling="no" > </iframe>

    Please give it a try and let us know how it goes.

  • FeriehusDirect
    Replied on October 23, 2020 at 8:28 AM
    Hi Richie_P
    I'm a little in doubt as to whether or not I understand your answer.
    The 2 pieces of information are not static, but variable.
    I want to send a link to my customers, where the variable information to be pre-filled is included.
    Best Regards
    FeriehusDirect ApS
    Jesper Peter Leerbeck
    Maglebjergvej 13 | 2800 Kgs. Lyngby | Tlf. +45 7070 7868
    info@feriehusdirect.dk | www.feriehusdirect.dk
    Den 23. okt. 2020 kl. 12.49 skrev JotForm :
    A new response has been received:
    Answered by Richie_P
    You can embed the Iframe code with the URL parameter in your web page.
    frameborder="0" style=" min-width: 100%; height:539px; border:none;" scrolling="no" >
    Please give it a try and let us know how it goes.
    View this thread on browser » Unsubscribe Thread 1603450181
    ...
  • Richie JotForm Support
    Replied on October 23, 2020 at 10:01 AM

    Thank you for the added information.

    Unfortunately, your requirements cannot be achieved using the iframe embed code.

    You may change your Form URL to a custom name so that you would not need to embed the form your web site as we can only add pre-filled URL parameters to forms.

    Here is a guide:https://www.jotform.com/help/261-how-to-create-a-custom-url-of-a-form?