Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • J 447 posts 864 karma points
    May 24, 2019 @ 09:02
    J
    0

    Uncaught ReferenceError: $ is not defined

    Using UmbracoForms Package 4.4.7 on Umbraco 7.5.

    I have a separate template and insert the form onto it. When i load it i always get the error

    Uncaught ReferenceError: $ is not defined
    

    Added Jquery ref but no matter what i do, the error remains. Does anyone know which Jquery i need to use or what refs i need to add?

  • B. Gunnarsson (Bryns) 25 posts 180 karma points c-trib
    May 24, 2019 @ 09:42
    B. Gunnarsson (Bryns)
    0

    I haven't used Forms for a while.. but here is what I used the last time, maybe this has been updated now.

    <script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-2.1.1.min.js"></script>
    <script src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.13.1/jquery.validate.min.js"></script>
    <script src="http://ajax.aspnetcdn.com/ajax/mvc/5.1/jquery.validate.unobtrusive.min.js"></script>
    
  • J 447 posts 864 karma points
    May 24, 2019 @ 10:18
    J
    0

    Thanks B. Gunnarsson. That's resolved that error but when i click next at the bottom of the form nothing happens?

  • B. Gunnarsson (Bryns) 25 posts 180 karma points c-trib
    May 24, 2019 @ 10:27
    B. Gunnarsson (Bryns)
    0

    How are you rendering the form to the page?

  • J 447 posts 864 karma points
    May 24, 2019 @ 10:42
    J
    0

    within my template, I've added

    <umbraco:Macro FormGuid="123" Alias="FormsRenderForm" runat="server"></umbraco:Macro>
    

    the form shows just doesnt go to the next page

  • J 447 posts 864 karma points
    May 28, 2019 @ 09:54
    J
    0

    Anyone? I have no errors listed in the console and have only 2 fields and it wont go to the next page?

    Even when removing the second page and using the submit button, it submits and an email is received but it doesnt display thank you or anything.

    I cant really purchase a product if its not working under a trial mode.

  • J 447 posts 864 karma points
    May 28, 2019 @ 15:14
    J
    100

    Looks like this works with only MVC engine and not Webforms!!

  • hlipperjohn 1 post 71 karma points
    Sep 01, 2020 @ 06:29
    hlipperjohn
    0

    Basically $ is an alias of jQuery() so when you try to call/access it before declaring the function, it will endup throwing this $ is not defined error . This usually indicates that jQuery is not loaded and JavaScript does not recognize the $. Even with $(document).ready , $ is still going to be undefined because jquery hasn't loaded yet.

    To solve this error:

    Load the jQuery library at the beginning of all your javascript files/scripts which uses $ or jQuery, so that $ can be identified in scripts .

    There can be multiple other reasons for this issue:

    • Path to jQuery library you included is not correct
    • The jQuery library file is corrupted
    • Working offline
    • Conflict with Other Libraries
  • Catia Costa 1 post 21 karma points
    Mar 03, 2021 @ 10:15
    Catia Costa
    0

    I had the same issue. The reason why is because I did miss this page's instructions before: https://our.umbraco.com/documentation/Add-ons/umbracoforms/developer/Prepping-Frontend/

    After adding these Umbraco Forms dependencies that were missing, conditional fields worked perfectly. :)

Please Sign in or register to post replies

Write your reply to:

Draft