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

    I would like to know the URL where the form was used using a Lightbox form

    Asked by handstellstories on August 12, 2012 at 01:03 PM

    I would like to do this, but would like to use the lightbox option. Is this possible?



    This is a re-post of a comment on Capture the Page URL Where the Form is Embedded

  • Profile Image

    Answered by javierf on August 12, 2012 at 01:16 PM

    Hello handstellstories,

     

    I am not sure but i think it is only possible with hidden boxes in the system.

  • Profile Image

    Answered by handstellstories on August 12, 2012 at 01:48 PM

    Yes, I was using the hidden box in the form.

    But I want to display the form using a lightbox after clicking a link, rather than embedding the form directly on the page.

    The embed code looks different w/ the lightbox option, so I'm not sure how to follow the instructions for finding out what URL the form is coming from.

  • Profile Image
    JotForm Support

    Answered by jonathan on August 12, 2012 at 03:45 PM

    Hi,

    You may want to check Adding-parameters-in-Lightbox-and-Feedback-forms article in JotFrom guide to understand how to pass value in a lightbox form.

    I made a test page using the lightbox form here. You can also check the test notification email here.

     

    This the lightbox code I used

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

    new JotformFeedback({

    formId:'22246053313442',

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

    iframeParameters: {

         'test1':  document.URL},

    windowTitle:'Clone of Clone of Contactformulier',

    background:'#FFA500',

    fontColor:'#FFFFFF',

    type:2,

    height:500,

    width:700

    });

    </script>

    <a class="lightbox-22246053313442" style="cursor:pointer;color:blue;text-decoration:underline;">Clone of Clone of Contactformulier</a>

    Please note 'feedback' and ' iframeParameters ...' (those in bold) as they are crucial to make the script work.
    Try it on your lightbox form and please inform us if you encounter difficulty applying the resolution.
    Thanks.
  • Profile Image

    Answered by handstellstories on August 12, 2012 at 09:00 PM

    Perfect, I got it.  Thank you!

  • Profile Image

    Answered by Alexander on January 29, 2013 at 02:03 AM

    Thanks for the service!

    When using "g=feedback" instead of "g=feedback2" in this line:

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

     

    the lightbox form pop-ups not in the middle of the screen, but near the bottom of the page.

    When "g=feedback" everything is OK.

    What is the problem?

     

    Best regards.

  • Profile Image

    Answered by pinoytech on January 29, 2013 at 03:25 AM

    Hi,

    Sorry for the inconvenience that may have caused. Can you please share to us the URL of your website where your from embedded to investigate the issue and for further assistance?

    Thank you!