HD Quiz

Is it possible to strip any leading or trailing spaces fr…

Published: April 13, 2021
Support status: closed

Is it possible to strip any leading or trailing spaces from text-based answers? I am using HD Quiz will a map-based “treasure hunt” where codes found on postboxes have to be typed in. This can take several hours to complete so I would like to maximise participant success and stop simple typing errors producing a wrong answer response! For the same reason, I would ideally like the user to have multiple goes at getting the answer right, but I don’t think this is possible in “Immediately mark answer as correct or incorrect” mode.
Thanks for a great plugin
Charlie

This thread has been imported from harmonicdesign.ca/hd-quiz/

thread author: Charles Reid

Hi Charles,
you are right about the immediately mark feature. Kind of hard to immediately mark if the user is allowed to change their answer 🙂

However, trimming the text based answers for trailing spaces… well that just makes good sense, so thanks for the idea! I just pushed a super minor update to HD Quiz that will do this. Since it’s such a small change I did not increase the version number. This means two things.

First, you will not be prompted to update HD Quiz – so please deactivate and delete HD Quiz (you will not lose any data) and then reinstall from the repository as normal. Second, please make sure to clear your cache (both browser cache and server cache if using a caching plugin) to ensure your browser is loading the updated files.

Other than that, you should be good to go!

13 April 2021 — 11:45 support admin - Dylan

New version strips space – great. Many Thanks
Charlie

15 April 2021 — 12:51 Charlie Reid

If you are enjoying HD Quiz please leave a review here on the official WordPress.org page. HD Quiz is developed by me, just some dude, and is supported and available for free. It may seem dumb, but truly nothing makes me happier than knowing that people are using and loving HD Quiz and my hard work.

This thread has either been marked as complete or has been automatically closed due to inactivity.