Cannot invalidate custom form tag
-
I am creating a new form tag, and trying to validate it.
The validation function is being called, that’s for sure, and the “invalidate” function is called upon the $result object (i.e.: $result->invalidate($tag, ‘…’) ), but it has absolutely no effect!!
I’m using the same method to validate other fields too, and it works. The only thing is that the other fields are all standard (text, email, file inputs). The custom one does not work!
For the filter name, I am using the same convention that I’m using for textarea (for example): “wpcf7_validate_textarea”,
and for my custom tag, I’m using: “wpcf7_validate_my_custom_tag”
So, what’s going on here?
The topic ‘Cannot invalidate custom form tag’ is closed to new replies.