What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.

  • Profile Image

    How to pass url variables to iframe?

    Asked by jsibley2 on September 30, 2015 at 02:59 PM

    I have read the help sections about passing parameters to jotform from the URL and that makes sense. However, I'm not sure how to put this into practice when embedding jotform in a page.

    In my particular case, I am using Drupal, and I can see how to embed a form using iframe (for example) and but I can't see how to combine that with the help on how to pass variables or parameters to the form.

    Could you please share an example of a way to pass this information that would work with Drupal?

    Thank you.

  • Profile Image
    JotForm Support

    Answered by Mike on September 30, 2015 at 05:09 PM

    The iFrame will not use the URL parameters of your web page, but you can prepopulate form directly by its URL on the iFrame.

    Add the URL parameters to the link specified in src.



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

  • Profile Image

    Answered by jsibley2 on September 30, 2015 at 05:19 PM

    Thank you. But how would one typically get that information into the src string of it isn't going to be hard coded into the src string? 

  • Profile Image
    JotForm Support

    Answered by Chriistian on October 01, 2015 at 02:21 AM



    If the value for the URL parameter is dynamic, I think you might need to programmatically add this to the src tag on your iFrame. You may use javascript to achieve this. 


    Do let us know if you need further assistance.