Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi guys - I'm sure I'm missing something obvious here, but the Previous and Next buttons on my multipage forms both just take you forward (or on the last page, submit the form!). Any suggestions very welcome. Thank you! Rowena
Having the same issue
The previous button needs to value a value attribute. In Forms.cshtml add value="1" to the prev button and that should fix it.
value = 1 solution with required fields on the second page, doesn't work
Same issue with Umbraco 8 and Forms - here is my fix:
document.addEventListener("click", function (event) { if (event.target.name === "__prev") { var previousClickedElementName = "PreviousClicked"; var previousClickedElement = document.getElementsByName(previousClickedElementName)[0]; if (previousClickedElement !== null) { if (previousClickedElement.value === "") { event.preventDefault(); previousClickedElement.value = "1"; var form = previousClickedElement.parentNode; form.submit(); } } } }, false);
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Umbraco forms - previous button doesn't go back
Hi guys - I'm sure I'm missing something obvious here, but the Previous and Next buttons on my multipage forms both just take you forward (or on the last page, submit the form!). Any suggestions very welcome. Thank you! Rowena
Having the same issue
The previous button needs to value a value attribute. In Forms.cshtml add value="1" to the prev button and that should fix it.
value = 1 solution with required fields on the second page, doesn't work
Same issue with Umbraco 8 and Forms - here is my fix:
is working on a reply...