how can I add % to progress bar

You'll need a text box and five actions to accomplish this. Assuming you want the percent for the whole title (as opposed to a chapter or section), you should put the text box and actions at the Title level (you probably want to put the text box just under the progress bar).


All of the actions are "On Show" actions. For the first action, you'll need to create a new variable (I'll call it ProgressPercent) and set it to equal VAR(PageInTitle). For the second action, modify the ProgressPercent variable by dividing it by VAR(PagesInTitle). [**Notice the "s" at the end of "Pages" in this action!**] For the third action, multply the ProgressPercent variable by 100. For the fourth action, add "%" (no quotation marks) to the ProgressPercent variable. Finally, for the fifth action, change the contents of the text box to equal the ProgressPercent variable.


Basically, what you're doing here is dividing the current page number [represented by "VAR(PageInTitle)"] by the total number of pages in the title [represented by "VAR(PagesInTitle)"], multiplying the result by 100 so you don't get a decimal value, adding the % sign (so it will display as, say "15%"), and then displaying the result in the text box.


Hope this helps!


Laura

Discussions have been disabled for this post