Variable/Dynamic Text Help
February 6, 2008 12:00 AM
I am using Lectora 2008 and having a problem with generating some dynamic text. I have a quiz that I want randomized and drawn from a question pool and still want to show the users the question number and the amount of questions in the quiz (Question # of #). The way that I have done this is: 1.Put all of the questions in Test Section within the Quiz folder 2.Created a text box on the top level of the Test Section (so it shows up on every page) for a place holder 3.Created a variable called RunningPageCount 4.Created an a set of 5 actions that modify this variable a.Action 1 – set variable contents: Question b.Action 2 – add to variable: VAR(PageInSection) c.Action 3 – add to variable: of d.Action 4 – add to variable: VAR(PagesInSection) e.Action 5 – change contents of Text box, new content – RunningPageCountWhen I preview the page in Run Mode it works fine, but when I publish to HTML the variable PageInSection has an initial value of 5551. The first question reads “Question 5551 of 5625”. I am not sure where the 5551 value is coming from since PageInSection is a Lectora Reserved variable.Does anyone have any clue as to why this is happening? Any help would be greatly appreciated!!
Discussions have been disabled for this post