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.3
Last Updated: 8 months ago
Active Installs: 1,000+
1 of 4 support threads in the last two months have been marked resolved.
Got something to say? Need help?