Home › Forums › ACF PRO › Validation errors do not clear after taxonomy submission › Reply To: Validation errors do not clear after taxonomy submission
Elliot,
My timing is a wee bit off. I was going to add one additional note but looks like you got to my initial response first.
I added “.acf-field[data-required=”1″] .add-attachment” to your remove_error list on line 5786 of input.js, so if user’s click on “Add to Gallery”, the error is removed. I also considered moving the red box from the “select” to the container holding both the “blue button” and “select” but I’ll have to come back to that.
I did try to add my own scroll to top for the submit but I didn’t realize that you had stopped propagation of the click. I noticed you had some “action handlers” for third party support. I gather it’s possible to hook into these for the ajax level submit and do the scroll to top. Do you have any support pages that describe how to do this?
While I have your attention, be aware that when I get_field for taxonomy related fields, I can’t do get_field(‘field_name’, $term[‘term_id’]). I must do get_field(‘field_name’, ‘category_’ . $term[‘term_id’]).
Thanks for listening,
Anthony
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.