JotForm Lightbox: Javascript conflict in Shopify website

  • pawpykisses
    Asked on July 24, 2017 at 4:57 PM

    Hello there, 

    I am using Shopify for my website. I am trying to embed the lightbox form into a page. The code I got from Jotform is below: 

    Grooming

     

    Shopify wouldn't allow me to directly embed the code in the page source code (I might be wrong about this). So I added the script to theme.liquid file and the code for the button on the page.

    Theme.liquid file:

    .jotformscript {

    }

     

    Page source code:

     

    The page loads fine. But the page is showing there's something wrong with the script (see attached picture). Some other functions on the website are affected as well. 

     

    Thank you so much in advanced for your help. I really appreciate it!

    Jotform Thread 1207170 Screenshot
  • Mike
    Replied on July 24, 2017 at 7:10 PM

    Please try to place (move) the JotForm Lightbox code before other scripts in the head section.

    JotForm Lightbox: Javascript conflict in Shopify website Image 1 Screenshot 30

    You can also remove the .jotformscript { } code.

    JotForm Lightbox: Javascript conflict in Shopify website Image 2 Screenshot 41

    If you need any further assistance, please let us know.