Title: Masks Form Fields
Author: Petermann
Published: <strong>నవంబర్ 8, 2016</strong>
Last modified: జనవరి 13, 2026

---

Search plugins

![](https://ps.w.org/masks-form-fields/assets/banner-772x250.png?rev=1530096)

![](https://ps.w.org/masks-form-fields/assets/icon-256x256.png?rev=1530096)

# Masks Form Fields

 By [Petermann](https://profiles.wordpress.org/ivanpetermann/)

[Download](https://downloads.wordpress.org/plugin/masks-form-fields.1.12.4.zip)

 * [Details](https://te.wordpress.org/plugins/masks-form-fields/#description)
 * [Reviews](https://te.wordpress.org/plugins/masks-form-fields/#reviews)
 *  [Installation](https://te.wordpress.org/plugins/masks-form-fields/#installation)
 * [Development](https://te.wordpress.org/plugins/masks-form-fields/#developers)

 [Support](https://wordpress.org/support/plugin/masks-form-fields/)

## Description

Add a class in the form field.

Example of use with [Contact Form 7](https://wordpress.org/plugins/contact-form-7/):

    ```
    [tel your-phone class:phone placeholder "Phone"]
    ```

Listing of classes available for use.

    ```
    ('span.start, input.start').mff_mask('00/0000');
    ('span.date, input.date').mff_mask('00/00/0000');
    ('span.time, input.time').mff_mask('00:00:00');
    ('span.time2, input.time2').mff_mask('00:00');
    ('input.date_time').mff_mask('00/00/0000 00:00:00');
    ('input.date_time2').mff_mask('00/00/0000 00:00');
    ('input.cep').mff_mask('00000-000', { clearIfNotMatch: true });
    ('input.zip').mff_mask('00000');
    ('input.phone, input[name="phonebr"]').mff_mask(PhoneMaskBehavior, nonoOptions);
    ('input.phone_us').mff_mask('(000) 000-0000');
    ('input.taxid').mff_mask('00-0000000');
    ('input.ssn').mff_mask('000-00-0000');
    ('input.mixed').mff_mask('AAA 000-S0S');
    ('input.cpf').mff_mask('000.000.000-00', { reverse: true, clearIfNotMatch: true });
    ('input.cnpj').mff_mask('00.000.000/0000-00', { reverse: true, clearIfNotMatch: true });
    ('input.money').mff_mask('000.000.000.000.000,00', { reverse: true });
    ('input.money2').mff_mask('#.##0,00', { reverse: true });
    ('input.money3').mff_mask('#,##0.00', { reverse: true });
    ('input.money4').mff_mask('000,000,000,000,000.00', { reverse: true });
    ('input.money5').mff_mask('#.##0', { reverse: true });
    ('input.money6').mff_mask('#,##0', { reverse: true });
    ('input.ip_address').mff_mask('099.099.099.099');
    ('input.percent').mff_mask('##0,00%', { reverse: true });
    ('input.percent2').mff_mask('##0.00%', { reverse: true });
    ('input.percent3').mff_mask('990,0%', { reverse: true });
    ('input.percent4').mff_mask('990.0%', { reverse: true });
    ('input.percent5').mff_mask('#,##0%', { reverse: true });
    ('input.percent6').mff_mask('#.##0%', { reverse: true });
    ```

[Click here](https://gist.github.com/petermann/fd1a898e02ca91a0d7231a9f8ee662b4)
for more details on how to add custom mask.

**Optional**
 – Added option for the format of the Brazilian phone number, with 
attribute `name` equal to `phonebr`.

### Credits

[jQuery Mask Plugin](https://github.com/igorescobar/jQuery-Mask-Plugin)

## Installation

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

## FAQ

### What is the plugin for?

This plugin to add masks in the form’s fields.

### How to add custom mask?

[Click here](https://gist.github.com/petermann/fd1a898e02ca91a0d7231a9f8ee662b4)
for more details on how to add custom mask.

## Reviews

![](https://secure.gravatar.com/avatar/b6efa41bcb92a88c9320263e36ade99276fd7eb7430b497f5ce820b0f2e3da3d?
s=60&d=retro&r=g)

### 󠀁[Simple et fonctionne parfaitement !](https://wordpress.org/support/topic/simple-et-fonctionne-parfaitement/)󠁿

 [Francks](https://profiles.wordpress.org/franck-awo/) జనవరి 27, 2024

Merci pour ce plugin. Top ! Pour les bricoleurs comme moi, pensez à ajouter la balise
<?php au début de votre fichier /wp-content/themes/YOUR-THEME/functions.php 😉

![](https://secure.gravatar.com/avatar/b341a9d436bd08a78cdb53d45f044c4dc64653bebdb0f041cc3d8d42b6be50b4?
s=60&d=retro&r=g)

### 󠀁[Good plugin](https://wordpress.org/support/topic/good-plugin-6724/)󠁿

 [mirazhyk](https://profiles.wordpress.org/mirazhyk/) జనవరి 24, 2024

Good plugin and very quickly support) I’m like

![](https://secure.gravatar.com/avatar/0d0816a31ebbb8a4ba11adc3fa95d7c4d7252d83781e2c48b65bd3c43efe04f9?
s=60&d=retro&r=g)

### 󠀁[It worked](https://wordpress.org/support/topic/it-worked-85/)󠁿

 [daprop](https://profiles.wordpress.org/daprop/) సెప్టెంబర్ 5, 2023

The only working plugin, with quality support

![](https://secure.gravatar.com/avatar/842642267efe5c7d91351125a90ba1e8b65a2e118d284f84cdf1ff5fd5459d9c?
s=60&d=retro&r=g)

### 󠀁[Very nice!](https://wordpress.org/support/topic/very-nice-1821/)󠁿

 [dimmone](https://profiles.wordpress.org/dimmone/) అక్టోబర్ 14, 2022

Works good with cf7. Thank you! It would be great to be able to see the fields to
fill out. Like placeholder but visible all the time.

![](https://secure.gravatar.com/avatar/35314daa56602a02eb8470bb014971b2b9d090bb75b38792ac1399fb066a2650?
s=60&d=retro&r=g)

### 󠀁[Its works](https://wordpress.org/support/topic/its-works-30/)󠁿

 [Marcos Nakamine](https://profiles.wordpress.org/marcosnakamine/) ఆగస్ట్ 2, 2022

WP 6.0.1 CF7 5.6.1

![](https://secure.gravatar.com/avatar/8d497e19c133694c82fb88352c066e5042e24dfdc3b24888a1884bbf3debd026?
s=60&d=retro&r=g)

### 󠀁[Funciona!](https://wordpress.org/support/topic/funciona-84/)󠁿

 [Fabio Moraes](https://profiles.wordpress.org/fabiomoraes/) మే 26, 2022

Ate que enfim um plugin que realmente funciona!

 [ Read all 23 reviews ](https://wordpress.org/support/plugin/masks-form-fields/reviews/)

## Contributors & Developers

“Masks Form Fields” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Petermann ](https://profiles.wordpress.org/ivanpetermann/)

“Masks Form Fields” has been translated into 3 locales. Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/masks-form-fields/contributors)
for their contributions.

[Translate “Masks Form Fields” into your language.](https://translate.wordpress.org/projects/wp-plugins/masks-form-fields)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/masks-form-fields/),
check out the [SVN repository](https://plugins.svn.wordpress.org/masks-form-fields/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/masks-form-fields/)
by [RSS](https://plugins.trac.wordpress.org/log/masks-form-fields/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.12.4

 * General fixes.

#### 1.12.3

 * Fix plugin header license and domain path.
 * Tested in WordPress 6.9

#### 1.12.2

 * Add the clearIfNotMatch option to the Brazilian masks: CEP, CPF, CNPJ, and phone
   number.
 * Tested in WordPress 6.8

#### 1.11.2

 * Convert line endings from CRLF to LF
 * Tested in WordPress 6.7

#### 1.11.1

 * Fixed JS minification conflict: Added semicolon after JSON declaration in wp_add_inline_script.(
   commit#3529ce1)
 * Added option for the format of the Brazilian phone number, with attribute ‘name’
   equal to ‘phonebr’. (commit#9c14400)

#### 1.10

 * Replaced wp_localize_script with wp_add_inline_script. (commit#6f6dc2d)
 * Updated minimum WordPress version requirement from 3.9 to 4.5.
 * Tested in WordPress 6.5

#### 1.9

 * Fixed conflict with another library.
 * Tested in WordPress 5.9

#### 1.8

 * Added five new mask formats. (date_time2, money5, money6, percent5, percent6)
 * Updated readme with usage example.

#### 1.7

 * Added new mask formats. (start, time2, zip, taxid, ssn, money3, money4, percent2,
   percent3, percent4)

#### 1.6

 * Tested in WordPress 5.8

#### 1.5

 * Fixed the incorrect value in the localize script.
 * Tested in WordPress 5.7

#### 1.4

 * Updated Readme description
 * Updated jQuery Mask library
 * Tested in WordPress 5.5

#### 1.3

 * 2019-06-10
 * Tested in WordPress 5.2

#### 1.2

 * 2017-11-20
 * Tested in WordPress 4.9

#### 1.1

 * 2017-8-7
 * Bug fix: remove date and time mask on body class.
 * Add mask only span and input fields.

#### 1.0

 * 2016-11-3
 * Initial release

## Meta

 *  Version **1.12.4**
 *  Last updated **3 నెలలు ago**
 *  Active installations **10,000+**
 *  WordPress version ** 4.5 or higher **
 *  Tested up to **6.9.4**
 *  PHP version ** 5.6 or higher **
 *  Languages
 * [English (US)](https://wordpress.org/plugins/masks-form-fields/), [Portuguese (Brazil)](https://br.wordpress.org/plugins/masks-form-fields/),
   [Swedish](https://sv.wordpress.org/plugins/masks-form-fields/), [Ukrainian](https://uk.wordpress.org/plugins/masks-form-fields/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/masks-form-fields)
 * Tags
 * [contact form 7](https://te.wordpress.org/plugins/tags/contact-form-7/)[field](https://te.wordpress.org/plugins/tags/field/)
   [form](https://te.wordpress.org/plugins/tags/form/)[mask](https://te.wordpress.org/plugins/tags/mask/)
   [phone](https://te.wordpress.org/plugins/tags/phone/)
 *  [Advanced View](https://te.wordpress.org/plugins/masks-form-fields/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  23 5-star reviews     ](https://wordpress.org/support/plugin/masks-form-fields/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/masks-form-fields/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/masks-form-fields/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/masks-form-fields/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/masks-form-fields/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/masks-form-fields/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/masks-form-fields/reviews/)

## Contributors

 *   [ Petermann ](https://profiles.wordpress.org/ivanpetermann/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/masks-form-fields/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://ivanpetermann.com/donation)