How can I pre-set via API default values for questions in a form?

  • Profile Image
    Asked on June 20, 2019 at 02:15 PM


    We want to show users a jotform form in an iframe with series of question, and we want to show each user personalized form, i.e. we want to put in some questions default values user's data. 

    is there any way we can pass that information into iframe so it can be pre-populated with user data?

    Alternative can be to change form's questions before showing it to each user but I also cannot find mention of default fields in the API reference.

    Please advice how can we achieve that


  • Profile Image
    Answered on June 20, 2019 at 03:34 PM

    I believe this guide can help achieve the requirement: Prepopulating the fields to your Jotform via URL parameters

    So if you'll be using an iframe embed code, you can append the URL parameters on the Jotform URL. Example:

    <iframe allowtransparency="true" src="//[first]=John&fullName3[last]=Doe" frameborder="0" style="width:100%; height:562px; border:none;" scrolling="no"></iframe>

    Here's how you can get the iframe embed code:

    1561059196iframe embed code.gif

  • Profile Image
    Answered on June 21, 2019 at 01:35 PM


    Thanks! That definitely what I'm looking for!

    I have an additional question - can we also set somehow redirect url on fly while displaying iframe? As we want to redirect each user to individual and unique link 

    Thank for your help!

  • Profile Image
    Answered on June 21, 2019 at 03:34 PM

    I have moved your additional question to a new thread to avoid confusions.

    You can view it via this link below: