Hi Aditya, Could you pls clarify more by giving an example if possible?
regards Avijit On Mon, Aug 8, 2022 at 10:38 AM Aditya Sharma <[email protected]> wrote: > Hello Avijit, > > >> Question 1: How do I use jquery validation in ftl forms? > Add class requireValidation to form > > Reference implementation of form macro: > > https://github.com/apache/ofbiz-framework/blob/release18.12/themes/common-theme/template/macro/HtmlFormMacroLibrary.ftl#L247 > > Implementation that initialises the validate plugin on form: > > https://github.com/apache/ofbiz-framework/blob/release18.12/themes/common-theme/webapp/common/js/util/OfbizUtil.js#L259 > > > > >> Question 2: How do I upgrade the jquery version to the latest version? > You need to download and replace files here > > https://github.com/apache/ofbiz-framework/tree/release18.12/themes/common-theme/webapp/common/js/jquery/plugins/validate > > > HTH > > Thanks and Regards, > Aditya Sharma > > On Sun, Aug 7, 2022 at 10:58 AM Avijit Bose <[email protected]> wrote: > > > Hello, > > > > It seems that currently ofbiz 18.12.05 is using jquery version 3.5.1. > > > > Question 1: How do I use jquery validation in ftl forms? > > > > Question 2: How do I upgrade the jquery version to the latest version? > > > > regards > > Avijit > > >
