Title: Validation on EDIT
Last modified: August 31, 2016

---

# Validation on EDIT

 *  [haksuma](https://wordpress.org/support/users/haksuma/)
 * (@haksuma)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/validation-on-edit/)
 * Hi,
    Using the Advanced Custom Fields: Validated Field, I created a uniqe field
   with pattern, and used a PHP statement for the validation. It validates a service
   ID: all works greate! my problem is – when I try to **edit** a service that contains
   that field, I get the error that the service ID already exists. how do I disable
   the validation on editing post/service?
 * [https://wordpress.org/plugins/validated-field-for-acf/](https://wordpress.org/plugins/validated-field-for-acf/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [doublesharp](https://wordpress.org/support/users/doublesharp/)
 * (@doublesharp)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/validation-on-edit/#post-7428476)
 * Hi [@haksuma](https://wordpress.org/support/users/haksuma/) – it sounds like 
   this might be a bug, the plugin is supposed to ignore the duplicate rule when
   the post is edited. This will be addressed in the new version of the plugin I
   am still trying to find time to work on…

Viewing 1 replies (of 1 total)

The topic ‘Validation on EDIT’ 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [doublesharp](https://wordpress.org/support/users/doublesharp/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/validation-on-edit/#post-7428476)
 * Status: not resolved