Copied to clipboard

Flag this post as spam?

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


  • Patrick 1 post 71 karma points
    Apr 17, 2019 @ 06:04
    Patrick
    0

    Is jquery for forms necessary

    Hi there,

    we are having an argument with our agency whether or not jquery is necessary in order for forms to work as described here:

    https://our.umbraco.com/documentation/Add-ons/UmbracoForms/Developer/Prepping-Frontend/

    In the link above it sounds like these 3 jquery dependencies are necessary - however, the forms created so far seem to work without it.

    Can you umbraco clarify the situation on this, and if they are needed - what for?!

    Many Thanks in advance

  • Louis Jackson-Rees 91 posts 319 karma points c-trib
    Apr 17, 2019 @ 09:26
    Louis Jackson-Rees
    0

    2 Things that immediately spring to mind would be the:

    • Field Validation - Requires jQuery validate
    • Multi-step / page forms
  • Jonathan Distenfeld 41 posts 230 karma points
    Apr 18, 2019 @ 11:44
    Jonathan Distenfeld
    0

    In the documentation it says:

    • jQuery (Javascript library) -> is needed for plugins to work
    • jQuery validate (jQuery plugin that provides client side form validation)
    • jQuery validate unobtrusive. (Add-on to jQuery Validation that provides unobtrusive validation via data-* attributes)

    So a clear answer would be: Yes, you need jQuery to make Umbraco Forms work properly without getting errors.

    If you wish to use Umbraco Forms without validation, you would need to customize the umbracoforms.js. Otherwise you will get errors like this:

    enter image description here

    -Jonathan

  • Matthew Wise 183 posts 725 karma points c-trib
    Apr 20, 2019 @ 21:52
    Matthew Wise
    0

    Depends how much effort you want to put in removing it :) I know of https://github.com/elglogins/Umbraco-Forms-Without-Jquery which removes the jQuery requirement no idea how well it works though.

    Matt

Please Sign in or register to post replies

Write your reply to:

Draft