Unexpected Token error using jotform

  • HubbleandHattie
    Asked on June 2, 2020 at 8:22 AM

    Hi,

    I'm using JotForm to collect requests for stock notifications, but I'm seeing an error on pages with the script. The error is 'Unexpected token'.

    I've attached a screenshot to demonstrate. How can I fix this?


    K@

    Jotform Thread 2362125 Screenshot
  • Ashwin JotForm Support
    Replied on June 2, 2020 at 9:59 AM

    It seems you want to embed lightbox form. Based on the screenshot you have shared, it seems that embed code is incomplete and that is the reason it shows error message. Please use the following embed code in your webpage and see if that solves your problem:

    <script src ="https://form.jotformeu.com/static/feedback2.js" type="text/javascript"></script><script type="text/javascript">

            var JFL_71143582065352 = new JotformFeedback({

              formId: '71143582065352',

              base: 'https://form.jotformeu.com/',

              windowTitle: 'Stock Notification Request',

              background: '#FFA500',

              fontColor: '#FFFFFF',

              type: 'false',

              height: 500,

              width: 700,

              openOnLoad: false

            });

        </script>

          <a class="btn lightbox-71143582065352" style="margin-top: 16px">

            Tell me when stock arrives

          </a>

    Do try it out and get back to us if you have any questions.