Skip to main content

Assessment

An assessment is a special type of survey where points are awarded for each question. The total score is automatically calculated and stored in a topic. Assessments can be used during employee recruitment or to assess the knowledge of employees in an organization with respect to procedures and regulations.

Submit assessment

Assesments are run in the same way as survey. The example below shows a quiz defined in form 'Trivia'. Open a web browser to http://app.mydomain.com/survey/trivia

The possible answers to the questions are defined by a vertical list of items. Each item has a unique key, a value and a label to display. The value defines the number of points awarded for the answer. When the Submit button is pressed the maximum number of points is stored in the variable form.maxScore and the total of point from the selected answers in form.score.

Form definition

Trivia

reference:Name

Who was the second man on the moon?
[
a:0 Neil Armstrong
b:1 Buzz Aldrin
c:0 Michael Collins
d:0 Yuri Gararin
]

What is the capital of the state of Florida?
[
a:0 Miami
b:0 Orlando
c:1 Tallahassee
d:0 Tampa
]

Which painter is not an impressionist?
[
a:0 Vincent van Gogh
b:0 Claude Monet
c:1 Rembrandt van Rijn
d:0 Eduard Manet
]

When was Napoleon Bonaparte born?
[
a:0 1487
b:0 1652
c:1 1796
d:0 1853
]

Score

The form has two pages, defined by the --> token for next page after the last question. When this token is added to the page a stepper control is added. The user can navigate to other pages in the form using the next and back buttons.

...
When was Napoleon Bonaparte born?
[
a:0 1487
b:0 1652
c:1 1796
d:0 1853
]

-->

Score
[00.00 pct]
<100 * form.score/form.maxScore

Result
<100 * form.score/form.maxScore > 75 ? 'Passed' : 'Failed'

The score is listed in the variable score on the second page and is displayed as a percentage. The value is set to the score devided by the maximum score. A second field shows if the candidate has passed or failed using a JavaScript ternary expression.

When the form is submitted the score and result are stored in topics that are composed of the form name, the reference and the question. The same form can be submitted multiple times. The scores and results are visible in the log and time charts when opening the topic.

trivia.gary.score=25
trivia.gary.result='Failed'