During the course of this book, you have discovered a lot of objects and interactions that make use of automatic feedback messages. For example, the Question Slides of the Quiz can display a red Failure Caption or a green Success Caption that depends on the answer supplied by the learner.
Using JavaScript, you will randomize these messages. The idea is to provide Captivate with a list of possible Failure and Success messages. When Captivate needs to display a feedback message, it will randomly pick one in the list of available messages and display it to the learner.
Let's start this process by creating two additional user variables in the takeTheTrain.cptx project.
This exercise was inspired by our good friend Phil Cowcill during his session on JavaScript and Captivate at DevLearn 2018. DevLearn is the biggest eLearning conference in North America. If you ever travel to DevLearn, we might have a chance to meet in person! More information...