Linux 软件免费装
Banner图

HeroBytes Confirm & Masks for Contact Form 7

开发者 herovibes
更新时间 2026年10月30日 20:48
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

contact form 7 confirmation multi-step phone mask input mask

下载

1.0.0

详情介绍:

Three things people keep asking Contact Form 7 for, in one small add-on: https://www.youtube.com/watch?v=4PB7xqJh8mI 1. A confirmation screen. Before the message is sent, the visitor sees a summary of everything they typed, with a Back button and a Send button. Fewer typos in phone numbers and emails, fewer "sorry, I meant..." follow-ups. Standard practice in Japan, useful everywhere. 2. Input masks. Add mask:phone-us, mask:cpf, mask:date, mask:money or your own pattern to any text or tel field and the input formats itself while the visitor types. Mobile keyboards switch to numeric automatically. Incomplete values are rejected on the server too. 3. Multi-step forms. Write [step "Title"] where a new step begins. Each step is validated before moving on. One form, one submission, no extra pages. Confirmation screen Input masks Add mask:NAME to a [text] or [tel] field: [tel* phone mask:phone-us] [text* document mask:cpf] [text birthday mask:date placeholder "DD/MM/YYYY"] [text* budget mask:money] [text plate mask:AAA-000] [tel* mobile mask placeholder "+57 (000) 000-0000"] Presets: phone, digits, money, phone-us, phone-br, phone-co, phone-mx, phone-ar, phone-cl, phone-es, phone-pt, phone-uk, phone-de, phone-fr, phone-it, phone-jp, date, date-us, date-iso, time, year, cpf, cnpj, cpf-cnpj, cep, nit, rut, dni, nie, curp, rfc, zip, zip-us, postcode. Pattern tokens: 0 digit, 9 optional digit, A letter, S letter or digit, # any character. Anything else is printed literally. Contact Form 7 does not allow spaces or brackets inside tag options, so for those write a bare mask and put the pattern in the placeholder, or define a named mask under Contact > Confirm & Masks. Dates and times are also checked to be real (no 31/02). The [mask* name "(___) ___-____" "Placeholder"] tag from the old "Contact Form 7 - Phone mask field" plugin keeps working. Multi-step forms [step "About you"] <label> Your name [text* your-name] </label> [step "Your message"] <label> Message [textarea your-message] </label> [submit "Send"] A progress list shows the steps. Next validates the current step with Contact Form 7's own rules. If the server rejects a field, the form jumps back to its step. The confirmation screen, if enabled, comes after the last step. For developers No external requests, no tracking, no accounts, no jQuery. Assets load only on pages that render a form using one of the features. Uninstalling removes the option and the per-form settings. This plugin is not affiliated with the developers of Contact Form 7.

安装:

  1. Install and activate Contact Form 7 (5.6 or newer).
  2. Upload the plugin folder to /wp-content/plugins/ or install it from Plugins > Add New.
  3. Activate it.
  4. Edit a form: the new Confirm & Masks tab turns on the confirmation screen and shows the mask reference.
  5. Optional: set global defaults in Contact > Confirm & Masks.

屏幕截图:

  • The confirmation screen as a pop-up.
  • Input masks while typing: phone, document, date and money.
  • A multi-step form with its progress list.
  • The Confirm & Masks tab in the form editor.
  • Global settings under Contact > Confirm & Masks.

升级注意事项:

1.0.0 Initial release.

常见问题:

The summary shows "Your name" but my label says something else

The plugin reads <label> elements: either wrap the field in one, or give the field an id: option and a <label for="...">. You can also wrap the label text in <span class="title-contactform7 for-FIELDNAME">. When nothing is found, the field name is prettified.

Can I leave a field out of the confirmation screen?

Yes. Add the class avoid-confirm (or hvcm-skip) to the field's wrapper: <p class="avoid-confirm">[text internal-note]</p>. Fields hidden by conditional-fields plugins are skipped automatically.

Does the confirmation screen work with reCAPTCHA, Turnstile or Akismet?

Yes. The form is submitted through Contact Form 7's normal path after the visitor confirms, so every spam check runs as usual.

My mask needs spaces or brackets

Tag options cannot contain them. Use [tel* phone mask placeholder "(000) 000-0000"] (bare mask takes the placeholder as pattern) or define a named mask in Contact > Confirm & Masks and use mask:thatname.

Does mask:money accept decimals?

Visitors type digits and the amount fills from the right, like a cash register: typing 1 2 5 0 gives 12.50. The separators and the number of decimals are set under Contact > Confirm & Masks and apply to every form on the site: mask:money cannot use different separators or decimals per form.

Can I validate masks on the server only?

Server validation is on by default and can be switched off in the settings. Client-side formatting cannot be disabled per field; just leave mask: out of fields that do not need it.

Does the multi-step form save progress between pages?

No. All steps live on one page and are sent together. This keeps things simple and avoids storing visitor data. If you need separate pages per step, look for a dedicated multi-page plugin.

I am migrating from "Contact Form 7 add confirm" or "Phone mask field"

Deactivate the old plugin and activate this one. [confirm], [back] and [mask* name "(___) ___-____"] tags keep working. Old CSS written for the wpcf7c- classes will no longer apply; the new confirmation screen uses hvcm- classes.

更新日志:

1.0.0