Basic Usage Examples
Add a class in the form field.
<input type=”tel” name=”your-phone” class=”phone“ />
Contact Form 7: [tel your-phone class:phone placeholder “Phone”]
Click here for more details on how to add custom mask.
Click here to create a temporary WordPress site for test this plugin.
Frequently Asked Questions
Installation Instructions
Installing “Masks Form Fields” can be done either by searching for “Masks Form Fields” via the “Plugins > Add New” screen in your WordPress dashboard, or by using the following steps:
1. Download the plugin via WordPress.org
2. Upload the ZIP file through the ‘Plugins > Add New > Upload’ screen in your WordPress dashboard
3. Activate the plugin through the ‘Plugins’ menu in WordPress
Default translation
'0': {pattern: /\d/}, // (Numbers)
'9': {pattern: /\d/, optional: true}, // (Optional Numbers)
'#': {pattern: /\d/, recursive: true}, // (Recursive Numbers)
'A': {pattern: /[a-zA-Z0-9]/}, // (Alphanumeric, Letters and Numbers)
'S': {pattern: /[a-zA-Z]/} // (Letters only)
Can I add new mask types?
Yes, use the code below.
The mask plugin work with WooCommerce?
The mask plugin work with Divi Theme?
Unfortunately, it does not support Divi Theme. But can keep the plugin active and try to insert below code to add the mask.
Go to Divi Theme Options -> Integration set “Enable header code” and add below code in “Add code to the < head > of your blog”.