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

  • Profile Image
    handstellstories
    Asked 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
    javierf
    Answered 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
    handstellstories
    Answered 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
    jonathan
    Answered 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
    handstellstories
    Answered on August 12, 2012 at 09:00 PM

    Perfect, I got it.  Thank you!

  • Profile Image
    Alexander
    Answered 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
    pinoytech
    Answered 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!