Hello, I have managed to create a multi page form using a slide and button disable feature, as per this persons ingenious post.
https://www.wix.com/code/home/forum/community-discussion/multipage-form-validation
Everything is working correctly, the slide will not move to the next page before all sections are complete. However, on the final slide and on submission when the submit button is clicked, I would like one more slide to show my submission message. the code is the same for all slides but when the submit button is clicked, I can get it to move to the last slide. My guess is that because this final button is linked to a dataset as the submission button, its is overriding my code to move to the next slide. my code is below, specifically #button9 is my submission button. any ideas?
thanks in advance
export function button7_click(event, $w, reject) { if ($w('#input8').value > 1000 && $w('#input9').value > 1000) { $w('#slideshow2').changeSlide(1); } else { $w('#button7').disable() setTimeout(function () { $w('#button7').enable() }, 2000) } } export function button8_click(event, $w, reject) { if ($w('#dropdown14').value !== '' && $w('#dropdown16').value !== '' && $w('#dropdown13').value !== '' && $w('#dropdown15').value !== '') { $w('#slideshow2').changeSlide(2); } else { $w('#button8').disable() setTimeout(function () { $w('#button8').enable() }, 2000) } } export function button9_click(event, $w, reject) { if ($w('#dropdown17').value !== '' && $w('#dropdown18').value !== '' && $w('#input10').value && $w('#input11').value && $w('#input12').value && $w('#input13').value && $w('#input14').value && $w('#checkbox2').value !== '') { $w('#slideshow2').changeSlide(3); } else { $w('#button9').disable() setTimeout(function () { $w('#button9').enable() }, 2000) }
are all your IF conditions being met ?
try temporally removing your IF conditions and see if the button fires