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