my form stops concrete5 CMS from working when I put the javascript in from the lightbox code supplied by jot form?

  • Profile Image
    yuggybear
    Asked on April 23, 2013 at 07:27 AM

    I am using Concrete5 and the code supplied by form jot causes an error.

     

    this is the code...

     

    <script src="//cdn.jotfor.ms/static/feedback2.js?3.1.40" type="text/javascript">

    new JotformFeedback({

    formId:'31101652708344',

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

    windowTitle:'Stripe Example: Blackpool',

    background:'#FFA500',

    fontColor:'#FFFFFF',

    type:false,

    height:500,

    width:700

    });

    </script>

     

    and this is the line that is causing the error...

    <script src="//cdn.jotfor.ms/static/feedback2.js?3.1.40" type="text/javascript">

    any idea's please?
  • Profile Image
    EltonCris
    Answered on April 23, 2013 at 09:45 AM

    Hi,

    That's probably due to code conflict between the JotForm script and your website's existing scripts. I can see you are using pop-up embed code already, is this something that you'd prefer now? That's one of the alternative solution to avoid conflicts.

    Please let us know your inputs. Thanks!

  • Profile Image
    yuggybear
    Answered on April 24, 2013 at 08:35 AM

    Thanks EltonCris,

     

    that is exactly what is the problem. We got a way round by embedding the source form code and used this ...

     

    [24/04/2013 13:33:18] Chris Dell: <script type="text/javascript">

        // Rescue jQuery (This goes before JotForm script)

        var $c5 = $;

        $ = null;

        jQuery = null;

    </script>

    [24/04/2013 13:33:24] Chris Dell: <script type="text/javascript">

        // Restore original jQuery (This goes after JotForm script)

        $ = $c5;

        jQuery = $c5;

    </script>

     

    this way you can embed jotform source and use concrete5 with no conflicts.

    G.