api call and invalidate wpcf7
-
i hook into via “wpcf7_mail_sent” and do an curl api call to an external website.
what i want to achieve now is, to invalidate the wpcf7 if the api call returns errors e.g. because of the api server being down or api validation errors.
is there a way to invalidate the wpcf7 and set the complete form’s error message (the one below the complete form), so that the user can not submit the form?
maybe via another hook like “wpcf7_submit”?(i don’t mean to invalidate fields and set their error messages like on https://contactform7.com/2015/03/28/custom-validation/)
best regards
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘api call and invalidate wpcf7’ is closed to new replies.