Help on a variable...
December 10, 2014 12:00 AM
Here's the task:
Page 1 has a pop-up appear in the form of a 'group' which the learner has to close in order to progress on page 1.
The pop-up is just an image with a button included (all elements are on the same page).
Page 2, when the learner reaches this page, they have to return to page 1 again. However, the pop-up
should no longer appear on page 1 on return and from this point onwards.
How can I achieve this result?
Discussion (2)
Create a variable e.g. "popup_closed", initial value "0"
Add an action to the close-button:
On: Click
Action: Modify variable
Target: popup_closed
Type: Set equal to
Value: 1
Add an action on page level:
On: Show
Action: Hide
Target: Your_popup_Group
Condition:
Only if "popup_closed" equal to "1".
Tim
You can also accomplish this without using any variables by taking advantage of the built in status tracking feature of Lectora:
On page 1, add an action:
- Trigger: On Show
- Action: Show the group
- Condition: This Page, Is Not Started
- Else Action: Hide the group
The first time the student hits the page it Is Not Started so the group is shown. Then the page is set to Completed. So anytime the student returns to the page the status is now Completed and the group will be hidden.
Daryl Fleary
Product Manager
Trivantis
Discussions have been disabled for this post