Store result quiz

Is it possible to store quiz results in a database using javascript?

Thanks
V

1 Like

Hi @Viviano_Causo,

It’s not possible to export quiz results to an external database, but you can store the results in a variable or a list/array and display a total score at the end. This can be done in CoBlocks or in Javascript.

Hope that helps! Let me know if you have any further questions about this. If this solves your problem, please mark this post as the Solution.

Geoff @ TechLeap

Hi @techleapnz. You wouldn’t happen to know where I can find a tutorial on how to do that? I’m very new to CoSpaces and trying to achieve the same. I have been searching for a few hours. Any assistance would be appreciated.

Hi @MarcdS, just to be clear, you can only store a score temporarily within a CoSpace - refreshing the page or leaving the CoSpace would clear out the score. In this way, it is a session variable. Here is a basic example:

This example merely keeps track of how many questions you answered correctly. If you wanted to provide more functionality than this, you’d need to describe/specify it.

Hope this helps. Let me know if you have any further questions.

Many thanks,
Geoff @ TechLeap

1 Like