Thanks a lot to both of you for your answers! I have tried both of your solutions and they work fantastically. In the end, I implemented a mix between both solutions, which allows me to easily scale the number of questions. Thank you!
That was it ahmedA, your code works perfectly! This will also be helpful for other posts in which I've seen people asking similar questions. I cannot thank you enough!!!I also found a way to introduce a counter variable in your code, so your code with the following slight modification answers my question perfectly. Thanks a lot again!if (given_answer == desired_answer) { that.clickNextButton(); btn.disable(); el.disable(); var practicejava = "${e://Field/practice_count}"; var practicejava1=parseInt(practicejava, 10); var practicejava1 = practicejava1+1; Qualtrics.SurveyEngine.setEmbeddedData('practice_count', practicejava1)
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.