We are having a problem with the mandatory fields upon checkout.. When we click on ‘Proceed to Payment Options’ and we are missing a mandatory field, it doesn’t let the registration submit and we do get the error message. However it doesn’t scroll to the error message and our client has asked that it does.. So my question is either is there an easy way to make this happen? and if not is there a known way to run a function right after the submit function has fired, so I can add some jQuery to make it work?
You can add some jQuery to make it work, and the recommended way to add the jQuery is via the wp_add_inline_script() function in your theme’s functions.php file or from your own custom plugin.
How would I hook the jQuery function to run upon the submit button function being completed? As I currently have it, it only runs before the submit function so you have to double click the button in order for the page to move up to the required field missing.
Thanks Josh, I will look into both and see if it works.
Viewing 4 reply threads
The support post ‘Page scroll to error for mandatory field missing’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.