With the option to remove Jquery in K13 Refresh 11 does XbyK, by default not need it now?

2024/08/29 8:43 PM

To elaborate further on the title, does XbyK use jQuery/jQuery validate/jQuery unobtrusive etc for Kentico Forms and if it doesn't, what is the minimum that needs to be included for it to work properly?

I have an XbyK project running Forms on which I have compared to the XbyK Dancing Goat demo site. Both have the page builder styles and scripts included on the page i.e. <page-builder-styles /> <page-builder-scripts />

Yet for some reason the validation between the 2 projects Form pages varies slightly and the Dancing Goat seems to perform a server side validation check first and my other project seems to default to built in browser HTML 5 checks (like those verifying a valid email address in an email field).

This wouldn't normally be a problem but we have an "inconsistency" that our client is experiencing where on longer site pages that email validation message is hidden when the browser scrolls up to the offending field and when the "submit" button is nearer to that offending field the error message can still be seen.

The solution I have which seems to be working is disabling the frontend validation altogether by adding a novalidate attribute on the pages form element.

This bypasses the frontend "glitch" mentioned above but the Kentico form error messages then come into play and it pretty much does what we want.

This solution however seems a bit of a hack so just checking if my initial query that I have fulfilled the minimum requirement with page builder inclusions for this form setup to working correctly?


Environment

  • Xperience by Kentico version: [29.3.1]
  • .NET version: [8]

Answers

2024/08/29 9:34 PM

Good question!

It is still required in Xperience by Kentico, not because of any technical limitations but because of prioritization of other features and improvements.

We do plan to remove the dependency in the future!

We have collected feedback about the Form Builder and jQuery and that helps with prioritization. If you'd like to see it removed, go ahead and submit some feedback about what improvements you'd like to see for the Form Builder!

2024/09/09 11:24 AM

Looking forward to removing jQuery! This was a great release for KX13, and it will be amazing for our new Xperience by Kentico sites.

2024/11/06 12:41 AM
Answer

Since the October 2024 Refresh jQuery is no longer required.

To answer this question, you have to login first.