• 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 5 years, 7 months ago by jhernandezg.
  • The topic ‘step back error doesn’t work’ is closed to new replies.