Title: Masks Form Fields
Author: Petermann
Published: <strong>2016-11-08</strong>
Last modified: 2026-05-23

---

Szukaj wtyczek

![](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

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

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

 * [Szczegóły](https://pl.wordpress.org/plugins/masks-form-fields/#description)
 * [Recenzje](https://pl.wordpress.org/plugins/masks-form-fields/#reviews)
 *  [Instalacja](https://pl.wordpress.org/plugins/masks-form-fields/#installation)
 * [Rozwój](https://pl.wordpress.org/plugins/masks-form-fields/#developers)

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

## Opis

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)

## Instalacja

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

## Najczęściej zadawane pytania

### 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.

## Recenzje

![](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/) 2024-01-27

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/) 2024-01-24

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/) 2023-09-05

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/) 2022-10-14

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/) 2022-08-02

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/) 2022-05-26

Ate que enfim um plugin que realmente funciona!

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

## Kontrybutorzy i deweloperzy

„Masks Form Fields” jest oprogramowaniem open source. Poniższe osoby miały wkład
w rozwój wtyczki.

Zaangażowani

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

Wtyczka „Masks Form Fields” została przetłumaczona na 3 języki. Podziękuj [tłumaczom](https://translate.wordpress.org/projects/wp-plugins/masks-form-fields/contributors)
za ich wkład.

[Przetłumacz wtyczkę “Masks Form Fields” na swój język.](https://translate.wordpress.org/projects/wp-plugins/masks-form-fields)

### Interesuje cię rozwój wtyczki?

[Przeglądaj kod](https://plugins.trac.wordpress.org/browser/masks-form-fields/),
sprawdź [repozytorium SVN](https://plugins.svn.wordpress.org/masks-form-fields/)
lub czytaj [dziennik rozwoju](https://plugins.trac.wordpress.org/log/masks-form-fields/)
przez [RSS](https://plugins.trac.wordpress.org/log/masks-form-fields/?limit=100&mode=stop_on_copy&format=rss).

## Rejestr zmian

#### 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

 *  Wersja **1.12.4**
 *  Ostatnia aktualizacja **2 tygodnie temu**
 *  Włączone instalacje **9 000+**
 *  Wersja WordPressa ** 4.5 lub nowszej **
 *  Testowano do **7.0**
 *  Wersja PHP ** 5.6 lub nowszej **
 *  Języki
 * [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/), i [Ukrainian](https://uk.wordpress.org/plugins/masks-form-fields/).
 *  [Przetłumacz na swój język](https://translate.wordpress.org/projects/wp-plugins/masks-form-fields)
 * Tagi
 * [contact form 7](https://pl.wordpress.org/plugins/tags/contact-form-7/)[field](https://pl.wordpress.org/plugins/tags/field/)
   [form](https://pl.wordpress.org/plugins/tags/form/)[mask](https://pl.wordpress.org/plugins/tags/mask/)
   [phone](https://pl.wordpress.org/plugins/tags/phone/)
 *  [Widok zaawansowany](https://pl.wordpress.org/plugins/masks-form-fields/advanced/)

## Oceny

 5 na 5 gwiazdek.

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

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

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

## Zaangażowani

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

## Wsparcie

Masz coś do dodania? Potrzebujesz pomocy?

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

## Złóż datek

Czy chcesz wesprzeć rozwój wtyczki?

 [ Wspomóż wtyczkę ](https://ivanpetermann.com/donation)