User Tools

Site Tools


create_an_interactive_e-learning_template

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
create_an_interactive_e-learning_template [2019/10/15 08:42]
lucy [Extended method of tracking the end of the quiz]
create_an_interactive_e-learning_template [2020/05/26 16:58] (current)
lucy [Troubleshooting]
Line 27: Line 27:
 b) If you are working on an awareness website within a campaign then click here (see pic) b) If you are working on an awareness website within a campaign then click here (see pic)
  
-{{ q2.png?600 }}+{{ ::​awareness_website_quiz.png?​600 ​|}}
  
 Lucy then will automatically inject a JavaScript called /js/quiz.js to your template, making quiz-­‐related functions available Lucy then will automatically inject a JavaScript called /js/quiz.js to your template, making quiz-­‐related functions available
Line 88: Line 88:
  
 :!: Attention! Enabling this option without calling the "​lucyQuizEnd()"​ function will cause recipients to not be marked as "​trained"​. :!: Attention! Enabling this option without calling the "​lucyQuizEnd()"​ function will cause recipients to not be marked as "​trained"​.
 +By default, Lucy marks each recipient as "​Trained"​ after receiving the very first answer to the quiz. With the option "Use extended method of tracking the end of the quiz" and calling the function lucyQuizEnd(),​ the Trained sign can be set at the moment when it is necessary.
 +
 +==== An example of usage the function lucyQuizEnd() in awareness training ====
 +
 +Using the awareness template "​Internet Security Exam" as an example, add the function lucyQuizEnd() to the source code for processing quiz answers. The quiz has 9 questions. The goal is to find victims who gives 5 correct answers to the quiz. Enable the option "Use extended method of tracking the end of the quiz" within the Website section of the Awareness Settings in the campaign.
 +
 +Add a new variable "​correctAnswerCount"​ to keep the amount of correct answered questions:
 +
 +<​code>​
 +var correctAnswersCount = 0;
 +</​code> ​
 +
 +{{ ::​awareness_quiz_new_variable.png?​nolink&​600 |}}
 +
 +Find the place in the code where function lucyQuizAnswer is called and insert a call of the function lucyQuizEnd after it with the condition as shown below.
 +
 +<​code>​
 +correctAnswersCount++;​
 +if (correctAnswersCount >= 5) {
 +    lucyQuizEnd();​
 +}
 +</​code> ​
 +
 +{{ ::​awareness_quiz_end.png?​nolink&​600 |}}
 +
 +Save the template and run the campaign. After 5 quiz questions are answered correctly, the recipient will be marked as "​Trained"​.
 +
 +:!: **Attention**. Using the function //​lucyQuizEnd()//​ together with the option "​**Ignore repeated answers in awareness**"​ __should be avoided__, since this function ignores the restrictions set by that option.
 +
 +
 +===== Troubleshooting =====
 +
 +__Issue.__ Lucy marks the recipients as '​Trained',​ while no quiz answers were given. \\
 +__Solution__:​ Enable the option "​**Quiz**"​ within the Website section of the Awareness Settings in campaign.
 +
 +__Issue.__ Lucy does not mark the recipients as '​Trained'​ despite received positive Quiz answers. \\
 +__Solution__:​ Disable the option "​**Extended method of tracking the end of the quiz**"​ within the Website section of the Awareness settings in campaign or change your awareness template as described above in this article.
create_an_interactive_e-learning_template.1571121756.txt.gz · Last modified: 2019/10/15 08:42 by lucy