Skip to content

Releases: lesniakr/mask-for-html-forms

Release list

v1.0.1

Choose a tag to compare

@lesniakr lesniakr released this 27 Dec 12:01

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, and languages/mask-for-html-forms-pl_PL.mo.

Notes

  • Inline errors remain off by default; enable via mfhf_script_settings or per field with data-mask-show-error="true".
  • Translations load from languages/; update PO/MO as needed.

v1.0.0

Choose a tag to compare

@lesniakr lesniakr released this 24 Dec 11:30

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-mask or data-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" or data-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.