Releases: lesniakr/mask-for-html-forms
Releases · lesniakr/mask-for-html-forms
Release list
v1.0.1
Changes
- Inline error handling for masked and non-masked fields with live validation; added messages for required/invalid/incomplete plus minlength/maxlength.
- New admin toggle to enable inline errors by default; documented mask options and presets.
- Added hooks for inline error class and invalid input class.
- Full i18n scaffold: POT template and Polish PO/MO for all PHP/JS strings.
- Bumped plugin version to 1.0.1.
Assets
- Added
languages/mask-for-html-forms.pot,languages/mask-for-html-forms-pl_PL.po, andlanguages/mask-for-html-forms-pl_PL.mo.
Notes
- Inline errors remain off by default; enable via
mfhf_script_settingsor per field withdata-mask-show-error="true". - Translations load from
languages/; update PO/MO as needed.
v1.0.0
What’s new
- Initial public release of “Mask for HTML Forms”
- Adds input masking to HTML Forms using jQuery Mask Plugin
- Built-in presets for common Polish formats (phone, postal code, PESEL, NIP, REGON) plus dates, time, credit card, IBAN
- Supports custom masks via
data-maskordata-mask-preset - Scripts load only on pages with HTML Forms (performance-friendly)
- Admin help page with copy-paste examples and preset table
How to use
- Add
data-mask="00-000"ordata-mask-preset="phone-pl"to your HTML Forms fields. - See the admin page: HTML Forms → Input Masks for presets and examples.
Compatibility
- WordPress ≥ 5.8, PHP ≥ 7.4
- Requires HTML Forms plugin (free version works)
Notes
- Masks format input; validation remains in HTML Forms or custom code.