Forum Discussion
Code snippet in Storyline
Hi,
I add code in RISE 360 using the Code snippet block.
I would like to know; how do I create the same in storyline.
Siva Kumar
- JohnMorgan-c50cFormer Staff
Hi Siva,
Thanks for reaching out about this! You can add JavaScript to your Storyline courses to create enhanced interactivity. Here is an article about working with JavaScript and Storyline.
I hope this helps!
- SivaKumar-11481Community Member
Hi John,
Thanks for the information.
I am looking for adding the code into slide, for example, the following code to be inserted into slides. In the final output, user will be able to copy the code. It is similar to code snippet block in RISE 360.
var currentTime = new Date()
var month = currentTime.getMonth() + 1
var day = currentTime.getDate()
var year = currentTime.getFullYear()
var dateString=month + "/" + day + "/" + year
var player = GetPlayer();
player.SetVar("SystemDate",dateString); - DonisaNorman-08Community Member
Is there an update for this? I am looking to do the same as Siva.