Title: Masks Form Fields
Author: Petermann
Published: <strong>08.11.2016</strong>
Last modified: 13.01.2026

---

Поиск плагинов

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

 Автор: [Petermann](https://profiles.wordpress.org/ivanpetermann/)

[Скачать](https://downloads.wordpress.org/plugin/masks-form-fields.1.12.4.zip)

 * [Детали](https://ru.wordpress.org/plugins/masks-form-fields/#description)
 * [Отзывы](https://ru.wordpress.org/plugins/masks-form-fields/#reviews)
 *  [Установка](https://ru.wordpress.org/plugins/masks-form-fields/#installation)
 * [Разработка](https://ru.wordpress.org/plugins/masks-form-fields/#developers)

 [Поддержка](https://wordpress.org/support/plugin/masks-form-fields/)

## Описание

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)

## Установка

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

## Часто задаваемые вопросы

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

## Отзывы

![](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.01.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.01.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/) 05.09.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.10.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/) 02.08.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.05.2022

Ate que enfim um plugin que realmente funciona!

 [ Посмотреть все 23 отзыва ](https://wordpress.org/support/plugin/masks-form-fields/reviews/)

## Участники и разработчики

«Masks Form Fields» — проект с открытым исходным кодом. В развитие плагина внесли
свой вклад следующие участники:

Участники

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

«Masks Form Fields» переведён на 3 языка. Благодарим [переводчиков](https://translate.wordpress.org/projects/wp-plugins/masks-form-fields/contributors)
за их работу.

[Перевести «Masks Form Fields» на ваш язык.](https://translate.wordpress.org/projects/wp-plugins/masks-form-fields)

### Заинтересованы в разработке?

[Посмотрите код](https://plugins.trac.wordpress.org/browser/masks-form-fields/),
проверьте [SVN репозиторий](https://plugins.svn.wordpress.org/masks-form-fields/),
или подпишитесь на [журнал разработки](https://plugins.trac.wordpress.org/log/masks-form-fields/)
по [RSS](https://plugins.trac.wordpress.org/log/masks-form-fields/?limit=100&mode=stop_on_copy&format=rss).

## Журнал изменений

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

## Мета

 *  Версия **1.12.4**
 *  Обновление: **3 месяца назад**
 *  Активных установок: **10 000+**
 *  Версия WordPress ** 4.5 или выше **
 *  Совместим вплоть до: **6.9.4**
 *  Версия PHP ** 5.6 или выше **
 *  Языки
 * [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/).
 *  [Перевести на ваш язык](https://translate.wordpress.org/projects/wp-plugins/masks-form-fields)
 * Метки:
 * [contact form 7](https://ru.wordpress.org/plugins/tags/contact-form-7/)[field](https://ru.wordpress.org/plugins/tags/field/)
   [form](https://ru.wordpress.org/plugins/tags/form/)[mask](https://ru.wordpress.org/plugins/tags/mask/)
   [phone](https://ru.wordpress.org/plugins/tags/phone/)
 *  [Дополнительно](https://ru.wordpress.org/plugins/masks-form-fields/advanced/)

## Оценки

 5 из 5 звёзд.

 *  [  23 5-звездный отзыв     ](https://wordpress.org/support/plugin/masks-form-fields/reviews/?filter=5)
 *  [  0 4-звездный отзыв     ](https://wordpress.org/support/plugin/masks-form-fields/reviews/?filter=4)
 *  [  0 3-звездный отзыв     ](https://wordpress.org/support/plugin/masks-form-fields/reviews/?filter=3)
 *  [  0 2-звездный отзыв     ](https://wordpress.org/support/plugin/masks-form-fields/reviews/?filter=2)
 *  [  0 1-звездный отзыв     ](https://wordpress.org/support/plugin/masks-form-fields/reviews/?filter=1)

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

[Посмотреть всеотзывы](https://wordpress.org/support/plugin/masks-form-fields/reviews/)

## Участники

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

## Поддержка

Есть что сказать? Нужна помощь?

 [Перейти в форум поддержки](https://wordpress.org/support/plugin/masks-form-fields/)

## Пожертвование

Хотите поддержать улучшение этого плагина?

 [ Пожертвовать на развитие плагина ](https://ivanpetermann.com/donation)