configureForms
Register form configs for the whole site in one place - typically a
single shared config file included on every page. Only forms
actually present in the current page’s DOM get wired up when
autoInit() runs, so it’s safe to register every form on the site.
Returns: void
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
configs | FormConfigInterface[] | required | - | One config per form, keyed by CSS selector, describing its field rules, AJAX options, error display type, and custom messages. |
Usage
const result = nfsfu234FormValidation.configureForms(configs);Last updated on