Date Stamp on Results slide
Jan 27, 2022
Hi I am fairly new to storyline 360 and was wondering if someone might be able to help me.
I am looking to add a date stamp that appears on the results slide, so that if asked for a screenshot, we can see what date the learner sat the assessment. I would like it in the following format:
Thursday 27th January 2022
I would need it so that it automatically pulled through - the learner will not be entering this information
Is this possible? If so, i would welcome any help and support in applying this
Thank you in advance :-)
6 Replies
Hannah,
Give this a try. I am not a Javascript expert but this appears to work in Mozilla, Edge, and Google Chrome.
Javascript experts out there (Walt, Matthew). if there is a better way or more appropriate way please chime on.
Note: This is set to 'en-us' in toLocaleTimeString
Hi Richard
Thank you so much for getting back to me. Unfortunately I am still unable to make this work. I will include screen shots of my set up below, but first can I ask, are you able to view this in preview? or after publishing to review? of will it only display once published to LMS?
My set up is as shown in attachment (this is only a test slide for now, nothing fancy)
I really am not sure what I am missing. As I mentioned in my original post, I am fairly new to the world of storyline and eLearning, so it could be that I have missed something really simple. I am still trying to find my feet with it all, so I really appreciate your help :-)
Hi, Hannah.
Thank you for reaching out, and I'm happy Richard gave you a great suggestion!
When working with Javascript, one thing to note is that it's case-sensitive. Your code looks good, but it references a variable called SystemDate in Storyline, while yours is called Systemdate. Changing the name of the variable should fix the issue.
I hope this helps!
Hannah,
Maria made a great point. Make sure you pay attention to the "case sensitive" part. Also, when doing any thing with Javascript, you will have to publish first in order to see the results.
Also, you won't need to add the text "Training completed on ..." just change that in the actual Javascript where you see Assessment completed on. Be careful to not remove the quotes.
Thanks Maria for responding. It's early morning here in the States (6:45am).
Richard
Hi all
Thank you all for your help and support with this. I have managed to get it to work now. Thank you again, I couldn't have done it without your support :-)
Hannah,
You are welcome. Glad you got it to work for your project.
Richard