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

    Lightbox embed not working on webpage with custom script code.

    Asked by SegPayJeff on July 07, 2015 at 12:52 PM

    My homepage has a small script for a slider I am using.  For some reason the embed doesn't work on this page.

     

    Any ideas on why it isn't working?

     

    This is the script tag

    <script>

            $(function() {

                $('.hero-copy').unslider({

                dots: true,

                delay: 7000

                })

            });

        </script>

     

    When I remove that from the HTML the ligtbox pops up, when it is in the HTML the lightbox will not pop.

     

    Thanks,

    Jeff

    embed not working with script thanks delay doesn't work work
  • Profile Image
    JotForm Support

    Answered by ashwin_d on July 07, 2015 at 01:31 PM

    Hello Jeff,

    This script must be conflicting with your form's lightbox script and that must be causing this issue.

    Please share the webpage URL where you have embedded your lightbox form and we will take a look

    We will wait for your response.

    Thank you!

  • Profile Image

    Answered by SegPayJeff on July 07, 2015 at 02:19 PM

    http://e2.toccata.com/jeffsegpay/index.html

  • Profile Image
    JotForm Support

    Answered by Mike on July 07, 2015 at 03:07 PM

    We will probably need to use jQuery.noConflict() in this case. Although, the lightbox seems to be fine on my test page.

    https://shots.jotform.com/mike/examples/lightboxAndSlider.html

    You can add the lightbox script back, and then we will be able to check it further.

    Thank you.

  • Profile Image

    Answered by SegPayJeff on July 07, 2015 at 03:53 PM

    You need to go to the URL I sent you.  There is an included header file, which contains the script, that you are not seeing.

     

    Do you have information on the jQuery No Script? I have no idea what that means.

  • Profile Image
    JotForm Support

    Answered by Mike on July 07, 2015 at 04:44 PM

    I see the script now. Please try adding the lightbox script directly to the page head section instead of the header.html file. It should fix the issue.

  • Profile Image

    Answered by SegPayJeff on July 07, 2015 at 05:45 PM

    that did the trick, thanks!!!!