How to Prepopulate Lightbox and Feedback Forms Using Parameters

November 4, 2022

Like all embedded Jotform forms, you can prepopulate a Lightbox or Feedback form’s fields by adding the query parameters to the parent window’s URL.

For example:

https://jotformer.blogspot.com/2022/11/feedback-signup-form.html?name[first]=Jane&name[last]=Doe&email=jane.doe@jotform.com&interests=News,Health,Sports

You can also prepopulate the fields by inserting iframeParameters inside JotformFeedback. For example, the iframeParameters section in the Lightbox embed code below prepopulates the Name, Email, and Interests fields on this form:

<script src ="https://form.jotform.com/static/feedback2.js" type="text/javascript"></script>
<script type="text/javascript">
    var JFL_223072173120441 = new JotformFeedback({
        iframeParameters: {
            name: {
                first:'Jane',
                last:'Doe'
            },
            email:'jane.doe@jotform.com',
            interests:'News,Health,Sports'
        },
        formId: '223072173120441',
        base: 'https://form.jotform.com/',
        windowTitle: 'Signup Form',
        background: '#FFA500',
        fontColor: '#FFFFFF',
        type: '0',
        height: 500,
        width: 700,
        openOnLoad: true
    });
</script>

The parameters are in key-value pairs where “key” is the field’s unique name and “value” is what to prepopulate the field with.


See also: Prepopulating Fields to Your Jotform via URL Parameters

Was this guide helpful?
Contact Support:

Our customer support team is available 24/7 and our average response time is between one to two hours.
Our team can be contacted via:

Support Forum: https://www.jotform.com/answers/

Contact Jotform Support: https://www.jotform.com/contact/

Send Comment:

Jotform Avatar
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Comments: