Linux 软件免费装
Banner图

Advanced Custom Fields: Validated Field

开发者 doublesharp
更新时间 2015年8月19日 23:59
PHP版本: 3.0 及以上
WordPress版本: 4.3
版权: GPLv2 or later
版权网址: 版权信息

标签

post page meta admin php validation addon acf advanced custom fields add on add-on edit input unique validate mask regex readonly

下载

0.1 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.1 1.1.1 1.1.1.1 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.5.1 1.2.6 1.2.7 1.3 1.3.1 1.5 1.5.1 1.6 1.7 1.7.1 1.7.2 1.7.3 1.7.4 1.7.5 1.7.6 1.0 1.2 1.4 1.7.7

详情介绍:

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.

安装:

  1. Download the plugin and extract to the /wp-content/plugins/ directory.
  2. Activate the plugin through the 'Plugins' menu in WordPress.
  3. Configure validated fields within the Advanced Custom Fields menus.

屏幕截图:

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

常见问题:

I've activated the Validated Field plugin, but nothing happens

Ensure that you have Advanced Custom Fields installed and that it is activated. Validated Field will appear as a new input type in the field group editor.

Configuration Options

Global configurations for the Validated Field plugin can be found in the WordPress Admin under Custom Fields > Validated Field Settings.

更新日志:

1.7.7 1.7.6 1.7.5 1.7.4 1.7.3 1.7.2 1.7.1 1.6 1.5.1 1.5 1.4 1.3.1 1.3 1.2.7 1.2.6 1.2.5.1 1.2.5 1.2.3 1.2.2 1.2.1 1.2 1.1.1.1 1.1.1 1.1 1.0.7 1.0.6 1.0.5 1.0.4 1.0.3 1.0.2 1.0.1 1.0 0.1