Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The message 'By proceeding you won't be able to go back and edit your answers' is coming when clicking the 'Back' link in the last question form.I think the message should only come when we click on the 'Finish' button
Comment | File | Size | Author |
---|---|---|---|
#8 | back_button_bug-2182483-8.patch | 896 bytes | eiriksm |
#3 | back_button_bug-2182483-3.patch | 909 bytes | sjager |
#2 | back_button_bug-2182483-2.patch | 1.05 KB | ultimike |
#1 | back_button_bug-2182483-1.patch | 1.05 KB | ultimike |
Comments
Comment #1
ultimikeI ran into this same bug. Patch is attached.
The patch just adds some jQuery to ensure that it was the "Finish" button that was clicked, and not the "Back" button.
Thanks,
-mike
Comment #2
ultimikeActually, here's a better patch. I was testing the button value (which can be different depending on the language) when I should have been testing based on the button's ID.
Thanks,
-mike
Comment #3
sjager CreditAttribution: sjager commentedI ran into this problem but I took a different approach by binding directly to the onclick action of the submit and submit as blank buttons. I also added a conditional inside of the submit button action to check the jump menu value since the question number jump menu (when enabled) will force a click on the `#edit-submit` button (and show the Confirmation Warning message)
Comment #4
eiriksmPatch in #3 works great.
Comment #8
eiriksmOh well, updated patch against 7.x-4.x then.
Comment #9
eiriksmSetting to needs review.
Comment #10
falcon CreditAttribution: falcon commentedGreat job!