Showing the form in a popup window

  • Profile Image
    VoiceXperts
    Asked on October 24, 2011 at 08:30 AM

    I would like to have a button on my website that when users click the form will open up as a pop up, how to I do this?

    websuccessadelaide@gmail.com is my email for anyone who could help me with this function.

  • Profile Image
    paoloumali
    Answered on October 24, 2011 at 09:04 AM

    Hi,

    You can easily do this with JotForm, and the keyword is 'Lightbox'.

    Here are the typical steps:

    1. Finish your Form.

    2. In 'Setup and Embed' tab, choose 'Embed Form'.

    3. Choose 'Lightbox' amongst buttons.

    It will give you something like below:

    <script src="//www.jotform.com/min/g=feedback" type="text/javascript">

    new JotformFeedback({

    formId:'12953920476',

    base:'http://www.jotform.com/',

    windowTitle:'Contact Us Sample',

    background:'#FFA500',

    fontColor:'#FFFFFF',

    type:false,

    height:500,

    width:700

    });

    </script>

    <a class="lightbox-12953920476" style="cursor:pointer;color:blue;text-decoration:underline;">Contact Us Sample</a>

    --

    Since you need a button, 

    Replace:

    <a class="lightbox-12953920476" style="cursor:pointer;color:blue;text-decoration:underline;">Contact Us Sample</a>

    with below:

    <input type="button" class="lightbox-theRightIdGoesHere" value="sample button" />

    or

    <input type="image" class="lightbox-theRightIdGoesHere" src="linkToImageGoesHere" />

  • Profile Image
    j
    Answered on January 30, 2012 at 01:50 AM

    dc