Pre fill a form, open in lightbox?

  • Profile Image
    ph34r
    Asked on May 19, 2011 at 11:15 PM

    Hey there, not sure if what I am trying to do is possible. I have a widget on my wordpress website that contains a simple form that gets the persons name and email address. I want them to be able to hit next and have my jotform open in a lightbox while adding the information that was gathered to the form. Is this possible?

  • Profile Image
    NeilVicente
    Answered on May 19, 2011 at 11:50 PM

    Hi,

    This may be possible but it would take some scripting skills to achieve.  The lightbox form can be prepopulated, however, the values filled in the form should be defined or static.

    Take this form for example. I have prepulated the two fields by adding this code:

    iframeParameters: {
         'age':'28',
         'Applying_for_Position':'manager',
    },

    inside the lightbox embed code, such as this:

     

    You may use this information to implement what you had in mind, although like I said, it would take require some custom scripting.

    Hope this post helps even in the slightest bit. Let me know if you have further questions or concerns.


    Neil

  • Profile Image
    ph34r
    Answered on May 20, 2011 at 06:30 PM

    Thanks for your help, I figured out how to do this script wise, but now I'm running into another issue. The block of code executes as soon as the page is loaded so it autofills the form with Null before the new value can set in the form. Do you know of anyworkarounds to not make that function work until it is called?

  • Profile Image
    liyam
    Answered on May 21, 2011 at 01:27 PM

    Hello ph34r,

    Can I know the URL of the form in issue here?

    Thanks.