Before reading this article, it will be helpful to read How to use Scored Surveys and Feedback.
This article will also show how to use the CML for calculations purposes.
Introduction:
In this article, we will learn how to display to your users their feedback scores based on their answers to the questions you have provided. First, we will introduce to you the two types of CML formula that we will be using.
{{activityResponseScore “activityId”}} - show the user’s overall score to an Activity
{{questionResponseScore "questionID"}} - show the user’s score to a specific Question
Below image is an example of a basic activity with allocated scoring. This shows the user’s answers from the feedback page after they complete the questions within an activity. You can choose to display to them the correct answers to individual questions or to the overall activity.
What this looks like from the Feedback page in Creator:
How to set this up
Step 1 - Create an activity with a scored survey topic. Create multiple questions and assign scores to them (ie. Incorrect = 0. Correct answers as 1)
To learn more how to set this up, follow the guide How to use Scored Surveys and Feedback.
Step 2 - Next we will create a feedback page that will summarise the scores to your users. Go to Feedback tab, create a new feedback and customise the message. Use the CML formula below to show the individual question scores and/or the total activity score.
{{activityResponseScore “activityId”}} - This will show the user’s overall score to an Activity
{{questionResponseScore "questionID"}} - This will show the user’s score to a specific question
Step 3 - Use the unique ID’s of the question scores as this will refer to the score depending on what the user will answer. Copy them and paste within the formula. For example {{questionResponseScore "abc1234567890"}}
Copy the question ID from the content block
Paste the unique question ID to the question response CML formula within the Feedback page
Repeat the same process of copying the unique ID to all the other questions
Step 4 - In order to show the overall score for Activity, go to the Activity tab and copy the unique ID for that activity. Paste the activity ID to the Feedback page within the activity response CML formula.
Step 5 - Make sure to link the Feedback page to the corresponding Activity. This will show right after the activity has been finished.
Calculate question scores using CML formula
Below is an example of a use case where you can use a randomised questionnaire which will show your users which category they relate to the most based on their answers.
Use the scoring system to assign points based on their answers to questions learned from How to use Scored Surveys and Feedback.
Then individually plot each of the question to which category that question corresponds to. This uses each individual question IDs which will be added up by the system to show a score for each category.
What this looks like from the Feedback page in Creator:
Copy and use the formula below
[calc]{{questionResponseScore "questionid"}}#+#{{questionResponseScore "questionid"}}[/calc]
Copy, paste and replace the question id "questionid". Leave the brackets.
If you wish to add more question within the equation, you can repeat the formula but ensure to include #+#
Similar to what was done from the first part of this article, you will need to go to each question content blocks within the activity and copy the unique question ID and paste them within the formula