In the admin I have created a new button next to publish button,
say MyCustom button,
on click on that button I wanted ACF validation to take place,
hence I have made a jQuery function
acf.validation.fetch( $(‘#post’) );
It works like a charm when there is a validation missing,
But when there are no validation error in the form
then then it submits the form.
Note that my intension is not to submit the form and hence I created another button called MyCustom,
I want this because I want to perform some actions before submitting but after validation state.
Viewing 5 posts - 1 through 5 (of 5 total)
The topic ‘Fire Validation Manually’ is closed to new replies.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users