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?
Please also let me know if you would recommend a better approach to score calculation. Thanks in advance!