Button Go back
Hi Elena,
sorry for the late reply. I was up north for a few days.
Please note that this code/feature is NOT supported and that it may not work with all existing features or question types. For example, for your use case, adding in a back button will allow a user to go back to the previous question/page, but since the question has already been marked, the user will not be able to change their answer.
I coded a simple version for another user that can be found here:
https://wordpress.org/support/topic/existing-previous-button-code/#post-13239478
I just did a quick look over and this should still work with the current version of HD Quiz, even though I wrote this code 4 years ago!
You’ll need to add that code to your theme’s functions.php file (/wp-content/themes/name-of-your-theme/functions.php). That code will hook into HD Quiz and add some custom javascript to the page to add in a new BACK button. BACKUP THE FILE FIRST. If you accidentally make a mistake adding the code, it will crash your site, so make sure you have a backup of functions.php before making any changes (best place to make these changes is from your host’s file manger).
The line data = 'BACK'; is where the HTML for the new “back” button is. I bring this up because I know your site is in another language, so you’ll need to change BACK to whatever translation works best for you.
This thread has either been marked as complete or has been automatically closed due to inactivity. Please consider opening a new support thread for help.
HI,
I have a quiz set to display one question at a time, I would like to know if it is possible to go back to answer previous questions if you have not answered them.