Explore the community Forums Lectora Inspire Tools Questions & Answers Last Page Viewed exception for assessment Reply To: Last Page Viewed exception for assessment

#435178 Score: 0
Profile photo of Adam Cain
Adam Cain
Member
beginner
intermediate
profile
picture perfect
wise owl
friend finder
Group Member
curious george
contributor
30 pts
@cainam

right – it just remembers the last page they were on, and takes them there.

I’m thinking you can create a variable that doesn’t save between sessions that initiates on the first page of the test.  Say…  “var_testStarted” set to zero (do not save between sessions).  Then when they get to the first test question, change that variable to a value of ‘1’.

On each page of the test, (on page show) you can check that variable to make sure it equals 1 (and if it doesn’t, send them back to the first page of the test).  That way, if they return to the test in the middle, that variable shouldn’t save between sessions, and so it should be equal to zero instead of 1, and when them come back to the page they left off, and it will send them back to the first page of the test.  I think that should work….