Advancing to Next Screen if actions are performed

Hi, Guys -


I have four buttons (Step 1, Step 2, etc.) that show text boxes and hide them when clicked (Clicking on one button will hide all the other content). I want to ensure that the learner views all of this content before advancing to the next screen.


So, I created 4 variables

Step1Var = 0

Step2Var = 0

Step3Var= 0

Step4Var= 0


Then, on each button, I created an action that changes the variable value to 1, when the button is clicked.


On the next button, I created an action that should only allow the learner to proceed to the next page, if the values of each variable for the buttons are greater than 0.


If they're not, then a message displays that you must view the contents for each hyperlink before advancing to the next screen.


The message displays fine, if the Next button is clicked before all of the content has been viewed, but it doesn't seem that the next button wants to advance to the next page, after each of the buttons are pressed. It doesn't advance to the next page now, even after the buttons have been clicked.


Any suggestions on how to fix this?


Thanks!

Discussion (4)

I figured out to get it to work. Modifying the variable needs to be set to "greater than or equal to" 1.



BUT, now I need to figure out how to only display the last page of the course when all of the other pages have been visited.


Any suggestions for THIS?


Thanks!

Ok, I chose option #2, but still can't get it to work right. So, I'm doing something wrong.


I created a variable called VisitedSum. On each page, I created an action that Added the page number to the variable sum (which started as 0).


On Page 50 (before going to page 51, which is actually the last page). I edited the action on the Next button to show the last page of the course only if VisitedSum variable is equal to 1275 (the sum of all the page numbers added together.


Do I need to enter, into the value field of the action on page 50, the equation you listed in your suggestion, e.g. 1275*(1275+1)/2? Will that get it to work?


What am I doing wrong?

Two ideas:

1) create a variable called 'chapter-control' and add a letter to it on each page, so after 26 pages you'll have something like 'abcdef......z' (use numbers for 36 pages). This is not recommended for pages, though, since it's too much hassle, but works well for chapters.

2) create a variable called 'visited-sum' and on each page add the current page number to the sum. So in the end you'll show the last page only if the visited-sum equals N*(N+1)/2 where N is your total page count (e.g. 5050 for 100 pages).

For a non-mathematical solution, you may want to checkout recorded webinar #17 (Advanced Progress Tracking) on the Lectora website.


Daryl Fleary

Trivantis

Discussions have been disabled for this post