Support

Account

Home Forums General Issues add_filter “acf/validate_save_post” and acf_add_validation_error Reply To: add_filter “acf/validate_save_post” and acf_add_validation_error

  • You can compare fields the same way, buy looking at the values in $_POST[‘acf’] to look at other values.

    I am assuming by looking at these that the fields are sub fields of a group field

    
    $email = $_POST['acf']['field_65067bd15086d']['field_65067bde5086e'];
    $confirmEmail = $_POST['acf']['field_65067bd15086d']['field_65067e4f26db1'];
    

    You can do the same thing or you can depend on the $value passed by ACF and compare it to the other value.