This extension bundles the fantastic imask.js package for Foswiki.
Masks may be assigned to an input field in a declarative way:
assign the .imask css class to an html element
use HTML5 data attributes to further parametrize
Syntax
Start by including %JQREQUIRE{"imask"}% into your page.
The input element is flagged with a css class imask. The type is specified in data-type="...". Available types are:
You do not need to install anything in the browser to use this extension. The following instructions are for the administrator who installs the extension on the server.
Open configure, and open the "Extensions" section. "Extensions Operation and Maintenance" Tab → "Install, Update or Remove extensions" Tab. Click the "Search for Extensions" button.
Enter part of the extension name or description and press search. Select the desired extension(s) and click install. If an extension is already installed, it will not show up in the
search results.
You can also install from the shell by running the extension installer as the web server user: (Be sure to run as the webserver user, not as root!)
cd /path/to/foswiki
perl tools/extension_installer <NameOfExtension> install