Quantcast
Channel: Adobe Community : Unanswered Discussions - Adobe Captivate
Viewing all articles
Browse latest Browse all 23155

Variable to check Number of Attempt

$
0
0

So here I am with another JS question.

 

I would like to make an "clickometer", so each time the user click or press the option that isnt the right one it visually, increment a graphic element on the course.

 

Captivate 7 give me the "cpQuizInfoMaxAttemptsOnCurrentQuestion" variable, but how can i check how many times the user click, that value isn´t storage in any other variable that I´ve tried, tried with "cpQuizInfoNegativePointsOnCurrentQuestionSlide" to see if I could minus the cpQuizInfoMaxAttemptsOnCurrentQuestion with, but no success.

 

I can trace "cpQuizInfoTotalCorrectAnswers" but it returns the total project value and not by slide.

 


console.log('quiz info attempt: '+cpQuizInfoAttempts);

console.log('attempts max: '+cpQuizInfoMaxAttemptsOnCurrentQuestion);

 

If I can´t perpaps find the solution, I would have to create a listener above the slide element the trace´s each click, tha´ts ok, but trace each key that is pressed, that´s were the problem live.

 

Thank you all.


Viewing all articles
Browse latest Browse all 23155

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>