How to Prepopulate Lightbox and Feedback Forms Using Parameters

April 18, 2024

Prepopulating fields can save users time by automatically filling in information that you already know about them. This can make the form-filling process more efficient and user-friendly. Like all embedded Jotform forms, you can prepopulate a Lightbox or Feedback form’s fields by adding the query parameters to the parent window 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 the embed code’s JotformFeedback. In this demo form, the iframeParameters section in the Lightbox embed code below prepopulates the Name, Email, and Interests fields:

<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@example.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

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:

  • Traveller Sha - Profile picture
  • pavelgon - Profile picture
  • Stefanooo - Profile picture
  • Stefanooo - Profile picture
  • eturner1003 - Profile picture
  • Hema - Profile picture
  • pawpawtaxology - Profile picture
  • clav - Profile picture
  • cctstvm - Profile picture
  • badassgentleman - Profile picture
  • edunaija - Profile picture
  • zkl john - Profile picture
  • bamag00n - Profile picture
  • mvanmartijn - Profile picture
  • jimuk69 - Profile picture
  • jimuk69 - Profile picture
  • pzielinski - Profile picture
  • citylightphilly - Profile picture
  • audabee - Profile picture
  • tuis - Profile picture
  • kimribbans - Profile picture
  • kimribbans - Profile picture
  • Jason Roth - Profile picture
  • nikaiachurch - Profile picture
  • nikaiachurch - Profile picture
  • pixonti - Profile picture
  • clicksem - Profile picture
  • xcitemedia - Profile picture
  • surajwebworld - Profile picture
  • josuel - Profile picture