The %% are markers to SL that the text between them delineates a variable, and the contents of that variable should be displayed, rather than displaying those exact letters as text. So without %%, I don't think there is any to signal SL to replace a name with its changeable contents. Why?
It's a bit more complicated of a set up - but if you used a second variable to reference the first? So the trigger would read something like "Adjust value of Variable B to the value of Variable A when X happens (and/or include a condition such as and the Value of A is equal to Z)".
Maybe you could share an example of what you're looking to set up so that folks could play around with your example?
Have a routine that I start by selecting a button. On each slide is a text box for a page number.
The routine would step through the slides sequentially from beginning to end. As it enters a slide it would place a sequential number into the text box. The number in the text box would not change until the routine is run again. This would alleviate having to hand number slides each time a slide is added or deleted.
I've used several authoring programs. This is the only one that doesn't provide a way to have the slides/pages numbered by the program itself. Having that function is very basic.
Page numbering in Storyline is a hot topic in the forums - so as such there are a few different ways to accomplish it. So you're on the right track using the variable set up, and then adjusting it with a trigger on each slide such as when the timeline starts or when the user clicks the next button (just make sure you've set up a subtraction if they click previous).
The intent is to run the routine before publishing, having the content in the text box remain the same all the time, such that it doesn't make any difference how one gets to the slide, it will still have the same number. No adding or subtracting while navigating.
I don't know of a way to include this prior to publishing. Since Storyline doesn't rely on linear navigation and the user could be jumping between multiple slides based on navigation methods, this is why page numbering is not built in - and something you may want to consider if you're not forcing users to follow from page 1, to page 2, and so on. I would imagine getting to a slide number 7 after you saw 3, could be confusing to some users.
9 Replies
The %% are markers to SL that the text between them delineates a variable, and the contents of that variable should be displayed, rather than displaying those exact letters as text. So without %%, I don't think there is any to signal SL to replace a name with its changeable contents. Why?
Looking for a way to have a trigger place the variable into the text box.
I want to control when the variable is placed into the text box.
Using the %% causes it to be automatically placed into the text box.
Hi Allen,
It's a bit more complicated of a set up - but if you used a second variable to reference the first? So the trigger would read something like "Adjust value of Variable B to the value of Variable A when X happens (and/or include a condition such as and the Value of A is equal to Z)".
Maybe you could share an example of what you're looking to set up so that folks could play around with your example?
What I am trying to accomplish:
Have a routine that I start by selecting a button. On each slide is a text box for a page number.
The routine would step through the slides sequentially from beginning to end. As it enters a slide it would place a sequential number into the text box. The number in the text box would not change until the routine is run again. This would alleviate having to hand number slides each time a slide is added or deleted.
I've used several authoring programs. This is the only one that doesn't provide a way to have the slides/pages numbered by the program itself. Having that function is very basic.
Hi Allen,
Page numbering in Storyline is a hot topic in the forums - so as such there are a few different ways to accomplish it. So you're on the right track using the variable set up, and then adjusting it with a trigger on each slide such as when the timeline starts or when the user clicks the next button (just make sure you've set up a subtraction if they click previous).
Here is a thread with a variable/javascript set up. This thread includes a few different options such as the variable within Storyline. In addition to the workarounds mentioned here you may want to submit a feature request regarding the ability to add page/slide numbers.
The intent is to run the routine before publishing, having the content in the text box remain the same all the time, such that it doesn't make any difference how one gets to the slide, it will still have the same number. No adding or subtracting while navigating.
I don't know of a way to include this prior to publishing. Since Storyline doesn't rely on linear navigation and the user could be jumping between multiple slides based on navigation methods, this is why page numbering is not built in - and something you may want to consider if you're not forcing users to follow from page 1, to page 2, and so on. I would imagine getting to a slide number 7 after you saw 3, could be confusing to some users.
Thanks Ashley
No problem Allen - sorry I couldn't be of more help.
This discussion is closed. You can start a new discussion or contact Articulate Support.