跳到内容

Advanced Custom Fields: Validated Field

v1.7.7

doublesharp · 2012年9月27日 上架

The Validated Field add-on for Advanced Custom Fields provides input masking and server-side validation of other field types.

正在使用
100+
评分
4.5 / 5
累计下载
1.9 万
最近更新
2015年8月19日
22 条评价需要 WordPress 3.0+已测试到 4.3.34

贡献者

截图

Example configuration for input masking and regular expression checking of a telephone number field.
Example configuration for input masking and regular expression checking of a telephone number field.
Example of client-side input masking on a telephone number field.
Example of client-side input masking on a telephone number field.
Example of failing to pass a regular expression check (phone number is incomplete).
Example of failing to pass a regular expression check (phone number is incomplete).
Example of failing to pass a uniqueness check - the telephone number is already in use by post "Test 1".
Example of failing to pass a uniqueness check - the telephone number is already in use by post "Test 1".
Example of PHP validation configuration. This code will fail if the request comes from "127.0.0.1" with the message "You cannot save from localhost!".
Example of PHP validation configuration. This code will fail if the request comes from "127.0.0.1" with the message "You cannot save from localhost!".
Example of client side PHP validation failure.
Example of client side PHP validation failure.

Validated Field Add-On

The Validated Field add-on for Advanced Custom Fields
provides a wrapper for other input types which allows you to provide client side input masking using the jQuery
Masked Input Plugin, server side validation using either PHP regular expressions
or PHP code, the option of ensuring a field’s uniqueness for all posts by post_type and meta_key, post_type, or site wide, or a
single post by meta_key, as well as marking a field as read-only. Edit your fields in the ACF Field Group editor and update code using the ACE.js
IDE with autocomplete and syntax validation.

Features

  1. Input Masking – easily set masks on text inputs to ensure data is properly formatted.
  2. Server-Side Validation – validate the inputs using server side PHP code or regular expressions.
  3. Uniqueness – ensure that the value being updated is not already in use.
  4. Repeater Fields – validated fields within a Repeater Field.
  5. Read Only – specify a field as read-only allowing it to be displayed but not updated.
  6. WordPress Multi Language – compatible with multilingual sites using the WPML plugin.
  7. Conditional Logic – show and hide validated fields based on the values of other “switch” fields.

Compatibility

Requires Advanced Custom Fields version 4.0 or greater.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums