Example "Variable Solution"
In addition to questions and answers, you can also define the correct solution dynamically for each test run. As a result, a wide variety of question templates are possible, which generate different, equivalent questions through the use of random values and provide the appropriate solution in each case.
This variable-dependent adjustment of the correct solution is available for choice, matching, and hotspot interactions. To access this feature, you need to enable the ID display in your user settings.
Explanation of the example’s function
Configuration in the “Variables processed before display” area:
You will need the following variables and conditions to implement this:
- A text variable used in the question that contains the random values for the question.
- A text variable able to hold the correct solution. This variable is initialized with an empty value.
- A condition in which the values of the question are linked to the corresponding IDs of the answers.
Configuration in the questions area:
You need to include the text variable to display the random values in the question.
By changing the solution variable in the ID of the correct answer section, the previous setting of the correct solution to the task is replaced by the answers specified in the condition.
Using the pre-configured question example
Import the question example: Create or Import Content. | . For instructions on how to import a question, see the help page![]() |
Change the question title and adjust the text accordingly. If you change the title of the variable “city,” you also have to make this change in the Variables tab.
| ![]() |
Adjust the background image and the corresponding hotspot areas to suit your question. You can delete existing hotspots and add new ones. For newly added hotspots, an ID is automatically assigned to these new answer options. You can customize the default name of the ID. Keep in mind that the ID must start with a letter. | ![]() |
Check the condition in the Variables tab and adjust it to match your question and solutions.
| ![]() |
The Feedback tab contains reference texts relevant to the city question. Make sure to adapt these to your question as well. | ![]() |
Save your question and use the preview to check if it is correct. | ![]() |