The Validated Field add-on for Advanced Custom Fields provides input masking and server-side validation of other field types.
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.
Requires: 3.0 or higher
Compatible up to: 4.3.1
Last Updated: 2015-6-25
Active Installs: 1,000+
2 of 5 support threads in the last two months have been resolved.
Got something to say? Need help?