Support

Account

Home Forums Bug Reports Validation Filter Not Working

Helping

Validation Filter Not Working

  • ACF PRO 5.7.5 (updated today incase fixed, but not)

    Front End form. Form submitting fine when valid. When trying to run some logic on validation I noticed my logic was never taking effect…

    To test I did a blanket approach to validate field filter:

    add_filter('acf/validate_value', 'ef_acf_validate_value', 99999, 4);
    
    function ef_acf_validate_value( $valid, $value, $field, $input ){
        return true;
    }

    Validation still prevents submission?

  • There isn’t enough information. What are you trying to do.

    Just in case this helps, the validation does not work on base on the one that happens last. If any validation fails then the field fails validation. It’s an OR relationship, so the filter you posted will not have any effect for a field that is failing for some other reason.

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

The topic ‘Validation Filter Not Working’ is closed to new replies.