Hi. For my bachelor thesis I want to implement
achievements
in an online survey and analyze the respondents reactions.
LimeSurvey looks very promising, but I don't know what would be the best way to implement the achievements.
Background:
For my bachelor thesis I want to implement
achievements
in an online survey. Eg. the user answers 50% of the questions and gets the achievement "50% answered!". During the survey there should be an overview regarding his or her unlocked and locked achievements.
What would be the best way to achieve this?
My Idea:
When the page gets loaded, a javascript queries the database for unlocked achievements and displays them.
When a Questions gets answered, a javascript looksup in the data base how many questions have been answered. If 50% of the questions have been answered, it displays the achievement. It also sets a value in the database, that the achievement has been unlocked.
I know how to execute a javascript, when a question gets answered. But how would I directly access the database in script?
Or is it possible to modify the PHP-Code? And where would be the best location to do that?
Or is there another way to achieve the described functionality?
Thanks for any help!