Error checking on custom checkout page
-
Are there any events emitted when a form data error is caught? I’m creating a multi-step checkout form and would like to display the step where the 1st error occurs (or possibly add a click handler to the error message that displays the appropriate step) when the message is displayed at the top of the page. Short of doing my own error checking, the only way I can think to take action when the message is displayed is to add a mutation observer to the element that contains the error messages (‘.woocommerce-NoticeGroup’). Any suggestions?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Error checking on custom checkout page’ is closed to new replies.