What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    Pre fill a form, open in lightbox?

    Asked by ph34r 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?

    Page URL:
    http://ph34rnet.fatcow.com/mih/

  • Profile Image
    JotForm Support

    Answered by NeilVicente 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

    Answered by ph34r 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
    JotForm Support

    Answered by liyam on May 21, 2011 at 01:27 PM

    Hello ph34r,

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

    Thanks.