Support » Plugin: Advanced Custom Fields: Extended » Validate field #2

  • Resolved redair

    (@redair)


    Hi.

    Lets say field #1 has a value. Now how do i verify that field #2 has the same value and not store any data? I think there is a smart way?

    Thanks šŸ™‚

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter redair

    (@redair)

    Hello, anyone there?

    Thread Starter redair

    (@redair)

    Like 2 password fields, but a textfield

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Sorry for the late answer, I was on holidays for few days.

    If you’re using the ACFE Form module, you can use the acfe/form/validation hook as described on the documentation. It will let you check the value of different fields, and throw a general error using acfe_add_validation_error().

    If you want to validate the page in the back-end, you can use the acfe/validate_save hook and use the same function to throw a general error. See documentation.

    Hope it helps!

    Have a nice day!

    Regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.