Title: Update Validation Pattern Example:
Last modified: August 24, 2016

---

# Update Validation Pattern Example:

 *  Resolved [twelve6](https://wordpress.org/support/users/twelve6/)
 * (@twelve6)
 * [11 years ago](https://wordpress.org/support/topic/update-validation-pattern-example/)
 * Can you update the validation pattern example:
 * `if ( empty( $value ) ){ $message = sprint_f( $message, get_current_user()->user_login);
   return false; }`
 * This is confusing since sprint_f is an undefined function. Also using an updated
   example to let users know they should be using double quotes and not single quotes.
 * Thank you! Great Plugin!
 * [https://wordpress.org/plugins/validated-field-for-acf/](https://wordpress.org/plugins/validated-field-for-acf/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [doublesharp](https://wordpress.org/support/users/doublesharp/)
 * (@doublesharp)
 * [11 years ago](https://wordpress.org/support/topic/update-validation-pattern-example/#post-6108942)
 * Yuck, good catch. The function name has probably been wrong forever and the new
   handling of messages/response is a lot cleaner as well, so I will get both updated
   for the next version.
 * Both single and double quotes should work, but it wouldn’t surprise me if you
   ran into an issue either. Any other info you can provide would be great.
 *  Plugin Author [doublesharp](https://wordpress.org/support/users/doublesharp/)
 * (@doublesharp)
 * [11 years ago](https://wordpress.org/support/topic/update-validation-pattern-example/#post-6108943)
 * [@twelve6](https://wordpress.org/support/users/twelve6/) It looks like you are
   using the ACF 4 code which is starting to fall behind the ACF 5 development, 
   so that is likely where you are seeing issues with the quotes. I would recommend
   upgrading to ACF 5 if you can.
 * Justin

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Update Validation Pattern Example:’ is closed to new replies.

 * ![](https://ps.w.org/validated-field-for-acf/assets/icon-256x256.png?rev=1116693)
 * [Advanced Custom Fields: Validated Field](https://wordpress.org/plugins/validated-field-for-acf/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/validated-field-for-acf/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/validated-field-for-acf/)
 * [Active Topics](https://wordpress.org/support/plugin/validated-field-for-acf/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/validated-field-for-acf/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/validated-field-for-acf/reviews/)

## Tags

 * [message](https://wordpress.org/support/topic-tag/message/)
 * [php-error](https://wordpress.org/support/topic-tag/php-error/)
 * [validation](https://wordpress.org/support/topic-tag/validation/)

 * 2 replies
 * 2 participants
 * Last reply from: [doublesharp](https://wordpress.org/support/users/doublesharp/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/update-validation-pattern-example/#post-6108943)
 * Status: resolved