Explore the community › Forums › Lectora › Lectora Questions & Answers › How do you show a test page based on a variable being X? › Reply To: How do you show a test page based on a variable being X?
Alternatively, if you wanted to keep the same linear setup, it would take a bit more effort to set up actions. I can only think of a manual way to do this, maybe there is a better way to do it at the chapter level or something… but here’s an option:
have unique ‘next’ buttons for each page once the user gets to the ‘review’ section. For the ‘next’ button, you will have multiple actions attached that look something like this:
- go to page 1 (if variable X=1)
- go to page 2 (if variable X=0 and variable y=1)
- go to page 3 (if variable x-0, variable y=0, and variable z=1)
(assuming a 3 question test in the above scenario). Each page you would need to replicate similar actions, obviously leaving off the actions/variables for pages already visited.