Course Personalisation displaying 'Good Morning', 'Good Afternoon' or 'Good Evening'

Hello Great People! Any help with this will be greatly appreciated.

I want to personalise my Storyline course by making my Learners see the message 'Good morning!', ' Good Afternoon', 'Good Evening' depending on the time of the day once they enter their first name. E.g.

Good morning Laura! Good afternoon Laura! Good evening Laura!

Has anyone tried this on Storyline before?

4 Replies
Matthew Bibby

You can add JavaScript to Storyline by creating a trigger with the action set to 'Execute Javascript'. Unfortunately it is not as simple as adding that code directly into Storyline, as the  code will need to be altered so that it passes the Good Morning or Afternoon message to a Storyline variable rather than displaying it in a standalone html page.

It is also a good idea to start with reading the best practices for javascript.