Skip to Content
NFSFU234FormValidation v3 is here — file upload validation, config-driven rules, and more.
v3 (current)configureForms

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

ParameterTypeRequiredDefaultDescription
configsFormConfigInterface[]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