Question x of x - can this be easily automated?

I have been asked indicate within the quiz section some form of progress.


It was suggested that I state "Question 1 of 10" and so on....


Other than using custom variables or manually entering text that states the current question number, is there a function that will automate such a display?

Discussion (6)

Thanks to everyone for posting such great information! I'm new to Lectora and am designing my first course. I have several tests in my title, all of which have random questions and answers. I can easily put page numbers and question numbers on them. However because they're random the page/question numbers are displayed and they look like 6 of 10, 1 of 10, 10 of 10, etc.. I need them to be displayed in order... Question x of xx; 1 of 10, 2 of 10, 3 of 10, etc.

On the test change the page names to the question numbers and then change the variable that for the action AddPageInChapterToLabel to Var(CurrentPageName).

[ATTACH=CONFIG]449[/ATTACH]

Thank you for the replies. I'm still working on getting the page numbers to display correctly. I'm fine until I randomize the questions.


I'm using Lectora Inspire V11. I created a variable called QuestionCounter. At the Test Level I created a Text box with an action to set QuestionCounter to 0; created an action to add 1 to QuestionCounter; then created an action to change contents to display QuestionCounter. It displays "1" on every page so I know I'm missing the instruction to "Create an action to Add 1 to _counter when each question page loads" instruction" and I don't know how to do that. Can you tell me how to do that?


Thanks,

Susan

Hi, Dayhiker!


I'm sure there are many ways to show the proper question number sequence when using random questions. Here's one to try:

  • Create a counter variable (e.g. _counter)
  • Before starting the test, set _counter to 0
  • Create an action to Add 1 to _counter when each question page loads
  • Display _counter on each question page

Doing this should display the proper question number sequence regardless of the actual random page display order.


Have fun!


--David

Add an action to your page and set it to:

On: Show

Action: Modify Variable

Target: (your page counter variable)

Value: 1

Modification Type: Add to Variable

Thank you Jill & David. I was able to get the pages numbered correctly. Really appreciate your help.


Susan

Discussions have been disabled for this post