Tracking chapter completion
September 27, 2016 12:00 AM
undefined
I am trying to track chapter completion prior to allowing the user access to the course exam.
I have a variable assigned for each Chapter. sta_chap1, sta_chap2, etc.... all initialized to 0 (zero)
On each page of each chapter I have an action to change the value of each chapter variable to 1 (one) if "This Chapter" relationship "Is Completed"
In the exam chapter, I have an action to set a variable "sta_chapComp" to true if "All conditions must be true"
What I am finding is if I complete the two pages of chapter 1 and access the exam, it is still showing a 0 (zero) for that chapter even thought both pages have been viewed and the TOC shows complete.
If I go back to chapter 1 and view a page and then return to the exam, it displays a 1 (one) for chapter 1.
Ideas? What am I missing or doing wrong?
- Chuck



Discussion (7)
Hi Chuck,
I feel like something is being run backwards here. It's hard to tell without seeing it.
So from the screen shot, you have an action on page 1 that sets STA_Chap1 equal to 1, only if the chapter is completed.
However, I don't think you are actually marking anything completed from what I can see. The Relationship for Is Completed is actually a built in action in Lectora.
I have attached a screen shot. If you don't work with this action to set a page or a chapter as complete then I don't believe your condition will work.
undefined

Can you share your file? It's indeed very difficult to find out what's going on without seeing the title.
Is there a reason why you're using separate variables to store the chapter completion instead of using Lectoras internal tracking status througout the course?
Tim
I guess I am not seeing what you are trying to do. How do people navigate to the exam? It seems like you are searching to see if chapters are completed inside the exam, but to trigger that the user has to already be in the exam.
I can't tell what you are doing in the other pages of a chapter to know if maybe the actions are just out of order.
G'day Chuck,
Try adding a delay to your page action as the page action maybe executed before the chapter completion flag has been set.
HTH
Regards, Peter
That does not make sense. If tracking is automatic, why would I need to add a second action to set tracking status? The TOC updates, so the status is there.
Working with tracking
With tracking you can account for which chapters, sections, pages, tests, test sections and surveys that your users have visited and completed. This allows you to know where your users have been within your content. You can automatically display the tracking status within the table of contents and menu objects based on your users' interactions with content.
Status is tracked automatically and you can also select to add status indicator objects to pages to display tracking information. Additionally, you can execute actions to manually update the tracking status of chapters, sections, pages, tests, test sections, and surveys and you can execute conditional actions that are dependent on the tracking status for specific chapters, sections,pages, tests, test sections, and surveys."
To continue....
I know in the Set Action Conditions, I can test for a chapters completion by selecting each chapter by its title. What I am trying to do is make this so other non-technical developers do not have to do so. Trying to remove the error factor by creating a template built out with a variable for total chapters required. Toggling a custom variable to "true" for each chapter and testing the number of completed chapters against a variables value with the number of chapters required.
This goes back to one of my very first threads about a number being assigned for each chapter...if there was a sequenced numerical value assigned for each chapter regardless of the title used for a chapter, it could be used for tracking instead of relying on going into the Set Action Conditions to select each chapter.
Does this blabber make sense?
- Chuck
Is there a reason why you’re using separate variables to store the chapter completion instead of using Lectoras internal tracking status througout the course?
How do you know completion status of individual chapters? Am I missing a variable somewhere?
The course is free navigation except for the exam.
- Chuck
Discussions have been disabled for this post