Support » Plugin: Post My CF7 Form » How to avoid duplicate field value when submitting form

  • Resolved sonofara

    (@sonofara)


    Is there a way we can check and avoid a duplicate custom field value from being submitted? Let say i have a phone number custom field, and once a number is submitted i want it to be unique and avid being submitted again?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Aurovrata Venet

    (@aurovrata)

    you need to create a custom validation for your phone field.

    You ned to use the Contact Form 7 validation hook to do so, and compare the submitted value with the those already saved in your previously submitted posts. If the phone has already been submitted, then invalidate the value.

    Tried validation hook, but not sure how to check existing post with in. Any help?

    Plugin Author Aurovrata Venet

    (@aurovrata)

    I would love to help, but its beyond the scope of this plugin. You can request for help in stackexchange, wordpress general forum, or if you wish to engage my help you can contact me on vrata at syllogic dor in

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to avoid duplicate field value when submitting form’ is closed to new replies.