How to pass url variables to iframe?

  • Profile Image
    Asked 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
    Answered 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 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
    Answered 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.