Are you facing trouble to generate a system date in Articulate Storyline? No problem, for this purpose we use Java Script. Articulate Storyline has a feature to execute Java Script. This is also one of the main reasons why Articulate Storyline is becoming popular.
In this blog, I will share how the system date can be generated in Articulate Storyline using Java Script.
First, you should know how to execute Java Script in Articulate Storyline.
Then an empty window will open for you to write your Java Script.
Here you should take a text variable with empty value as default.
Then you should add the code as mentioned in the screen below to generate the system date.
In the above code, I have used the variable “SystemDate” that I created earlier.
Now you will need to decide when we want the Java Script to be executed. Here I am executing the Java Script when the timeline of the slide begins.
Now you should place the text variable “SystemDate” within “%” symbols to display the system date that I have mentioned in the above screenshot.
Once the coding part is completed, we need to check the output. We will not be able to watch the output of the Java Script while previewing the file. So, we need to publish it, so that we see the outcome of Java Script. Once we publish, the output of the code is displayed as shown in the screenshot below.
By utilising this Java Script feature in Articulate Storyline you can make your elearning courses dynamic by adding the current date to certificates. Don’t you think this feature is useful?
Click here to see how this works.
Change your system’s date and click on the link and it will show the changed date. It means no matter when you click on this link, you will see the date that is there on your system. Isn’t that great!