Embed
Create a Collection
Update Collections
Steps to set an element to increase a Custom Variable by 1 when the learner clicks on the element.
In dominKnow | ONE, you create a Custom Variable as part of setting up the first action that will set its value. (You don't need to create the varibale first then create the action to set its value.)
In this example the action is set to fire only once so if the learner clicks on the element more than once, the variable's value isn't increased after the first time click.
After this first action is created you can set the other two double carat images to also increase the value of this same Custom Variable. Once the learner has selected all three elements, the variable's value would equal 3.
-
1In this example, we have an image of a double carat that we'll use as the element the learner will click on. Select the image on the page.
Click the continue button:
-
2Select the Interact tab.
Click the continue button:
-
3Select Actions.
Click the continue button:
-
4Select Functions and Variables.
Click the continue button:
-
5Select Set Variable.
Click the continue button:
-
6Select Next.
Click the continue button:
-
7On the panel that opens to thr right of the Stage, leave the Triger: set to When clicked and the Timer set to 0:0.0. Since this is the first Custom Variable we're creating, there are no variables available under the Variable: dropdown, so it is set to New Variable. You use the Name: field to type in the name of the new variable. For this example, we'll name the variable "AllClicked." Click the Name field and we'll add the name in for you.
Click the continue button:
-
8The Operator sets the type of value change we want to use to set the value of the variable. By default it is set to "=", which would set the value to a specific amount. We want clicking the button to increase the variable's value by 1, so select the Operator drop down list.
Click the continue button:
-
9Select "+=".
Click the continue button:
-
10The Value field is where you set how much the variable will increase by. Click the Value field and we'll add in "1".
Click the continue button:
-
11To prevent the learner from increasing the variable's value repeatedly by clicking this button, we'll set this action to Fire Once. Select the checkbox beside Fire Once:.
Click the continue button:
-
12Click Apply to complete and save the set up of this action.
Click the continue button:
-
13The action is now shown on the Element Interactions list.
Click the continue button:
Comments ( 0 )
Sign in to join the discussion.