Title: step back error doesn&#8217;t work
Last modified: April 28, 2019

---

# step back error doesn’t work

 *  [jhernandezg](https://wordpress.org/support/users/jhernandezg/)
 * (@jhernandezg)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/step-back-error-doesnt-work/)
 * We assume that the function below in wizard-js.js should show the step in which
   there is a validation error (for example an invalid email address) … but it does
   not work.
 * Can you offer us any indication of how to solve it? Is it possible that some 
   other selector should be indicated in the function?
 * We are using:
    WP: 4.9.5 CF7: 5.0.1
 *     ```
       ///step back to error ... 
       	$(".wpcf7 input.wpcf7-submit").click(function(e) {
       		var form = $(this).parents('form');
       		setTimeout(function(){
       			 form.find(".wpcf7-form-control").each(function(idx, elem) {
       				if($(elem).hasClass('wpcf7-not-valid')) {
       					var step = $(elem).parents("section").data("step");
       					form.find("section[data-step]").hide();
       					form.find("section[data-step='" + step + "']").show();
       				}
       			});
       		},1000);
       ```
   
    -  This topic was modified 7 years, 1 month ago by [jhernandezg](https://wordpress.org/support/users/jhernandezg/).

The topic ‘step back error doesn’t work’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/simple-contact-form-7-wizard-multisteps-
   form_f9faf9.svg)
 * [Simple Contact form 7 Wizard Multisteps Form](https://wordpress.org/plugins/simple-contact-form-7-wizard-multisteps-form/)
 * [Support Threads](https://wordpress.org/support/plugin/simple-contact-form-7-wizard-multisteps-form/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-contact-form-7-wizard-multisteps-form/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-contact-form-7-wizard-multisteps-form/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-contact-form-7-wizard-multisteps-form/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [jhernandezg](https://wordpress.org/support/users/jhernandezg/)
 * Last activity: [7 years, 1 month ago](https://wordpress.org/support/topic/step-back-error-doesnt-work/)
 * Status: not resolved