Skip step via validating field value
-
Hello! I’ve just started using the pro version of this plugin, and I’m needing to skip a step when a certain value is present in a field within the form. I’ve been able to retrieve the field’s value, but have had no luck skipping a step with the example in https://conditional-fields-cf7.bdwm.be/multistep-example-move-to-specific-step-programatically/
I keep getting Uncaught ReferenceError: wpcf7cf is not defined. I tried to amend the snippet to this, I’m sure I’m missing something obvious, but I’ve been trying for hours to no avail. I really need to work this out as it will force us to change plugins if we can’t skip steps 🙁
Note: I can’t link the page as it’s not allowed to go live on the site yet.
<script> (function($){ $form = $('.wpcf7-form'); var powertypevar = document.getElementById('power-type-pre').value; if (powertypevar != 'ABB7kW') { wpcf7cf.multistepMoveToStep($form, 3); return false; } })(jQuery) </script>
The topic ‘Skip step via validating field value’ is closed to new replies.