I am making an online math test-taking website. An example, without any javascript or functional “submit” button, is available on https://tanishqashringarpu2.wixsite.com/website/copy-of-test-3 .
The questions are stored in a database & displayed in individual repeaters (e.g. 1+7 = _). When the “submit” button outside the repeater, at the bottom of the page, is clicked, a forEachItem() loop calculates the score & saves it to the database of exam instances. The submit button takes us to the results page and, there, I access the scores from the database & present them to the user.
-
How to ensure that “submit” button doesn’t take us to the “results” page before score calculation is complete?
-
Will the score still be calculated if the user has JavaScript disabled?
Please also let me know if you would recommend a better approach to score calculation. Thanks in advance!