It uses forms validation by the FormValidation.io plugin which is built into metronic.
But I would also like to use the AutoFocus plugin https://formvalidation.io/guide/plugins/auto-focus/
When trying to join
plugins: {
autoFocus: new FormValidation.plugins.AutoFocus (),
}
I get an error
plugins.bundle.js:3841 jQuery.Deferred exception: FormValidation.plugins.AutoFocus is not a constructor TypeError: FormValidation.plugins.AutoFocus is not a constructor
at _initValidation (http://172.11.12.181:81/assets/js/orders/order-pit36.js:1714:17)
at Object.init (http://172.11.12.181:81/assets/js/orders/order-pit36.js:1735:4)
at HTMLDocument.<anonymous> (http://172.11.12.181:81/assets/js/orders/order-pit36.js:1741:12)
at mightThrow (http://172.11.12.181:81/assets/plugins/global/plugins.bundle.js:3557:29)
at process (http://172.11.12.181:81/assets/plugins/global/plugins.bundle.js:3625:12) undefined
jQuery.Deferred.exceptionHook @ plugins.bundle.js:3841
Is it possible to use the autoFocus plugin?