Variables resetting upon button click
I have produced a slide with a custom interaction using variables to track when a learner has chosen the correct options from 11 decisions. Each variable increases by 1 and a total variable tracks the overall score against the number of selections which have been made.
When learners click submit then I have a results dialogue box which shows the number of selections the learner has got right against the number they have selected.
All of these functions are working fine until the learner clicks on the custom submit button on the page because for some reason it is wiping all of the variables which are on the page, this is leading to the dialogue box always stating that the user has got 0 out of 11.