How to Pull Current Date in Articulate Storyline [Using JavaScript]

  Рет қаралды 3,817

Learning Dojo

Learning Dojo

Күн бұрын

Пікірлер: 41
@felicial7628
@felicial7628 2 жыл бұрын
This video has been incredibly helpful! I have been struggling to learn JavaScript. And, this is my first time being able to 'read' code. AND, I can't tell you how many times I have tried to do this unsuccessfully. SUBSCRIBED!
@LearningDojo
@LearningDojo 2 жыл бұрын
Glad it helped! That makes me happy to hear. I am planning on more JS and Storyline videos so stay tuned.
@bluegrasslearningsolutions
@bluegrasslearningsolutions 8 ай бұрын
Great tutorial. Thank you for sharing the code and walking through your thought process.
@LearningDojo
@LearningDojo 8 ай бұрын
Glad it was helpful!
@michelleej
@michelleej 8 ай бұрын
I love the tip about using the grid paper, then changing it later!
@LearningDojo
@LearningDojo 8 ай бұрын
Awesome!
@DannyWoodMusic
@DannyWoodMusic Жыл бұрын
Thanks Jeff! This is exactly what I needed for a project I'm working on.
@LearningDojo
@LearningDojo Жыл бұрын
Awesome! Happy to help Danny
@Kanaxtheic
@Kanaxtheic 4 ай бұрын
Very nice! Thanks for this video.
@LearningDojo
@LearningDojo 4 ай бұрын
Glad you liked it!
@JulieTaylor-d4r
@JulieTaylor-d4r Жыл бұрын
Hi Jeff, this is great thank you, I am confused though as to what type of variable I need to select in SL to allow date to be collected?
@LearningDojo
@LearningDojo Жыл бұрын
Text variable should be the one.
@fiveironscott
@fiveironscott 5 ай бұрын
Hey Jeff, it seems I could feasibly send SCORM files to clients and let them know they must renew a contract they by a certain date and put a reminder and an execution date in my file via this method.
@LearningDojo
@LearningDojo 5 ай бұрын
Yeah maybe add a redirect based on the date.
@isabellelemarchal
@isabellelemarchal Жыл бұрын
Many thanks !
@LearningDojo
@LearningDojo Жыл бұрын
You are welcome!
@luisrobles943
@luisrobles943 2 жыл бұрын
Hey there, great video as usual. I was wondering if you can show how to set up a timer. I’m thinking this could be useful for a bunch of compliance courses. Thanks!
@LearningDojo
@LearningDojo 2 жыл бұрын
Luis - I have a timer example in the pipeline. So stay tuned and you will see a video about it.
@rossiboy1962
@rossiboy1962 11 ай бұрын
Thanks Jeff, this is exactly what i needed. Am new to the use of JavaScript in Articulate so I can me myself using your content a lot more. We are also looking to push results of a test out to training staff via an outlook email. Is this something you could help with or direct us to please ?
@LearningDojo
@LearningDojo 11 ай бұрын
You could connect using something like Zapier to do something like that. It is a tool to help automations.
@RaviKumar-je2np
@RaviKumar-je2np Жыл бұрын
Can i call course completion Date to Storyline so that i can display the same in the Certificate..
@LearningDojo
@LearningDojo Жыл бұрын
Completion is recorded but pulling the date may require the LMS API. Not sure would have to do some digging.
@radiusvsl457
@radiusvsl457 4 ай бұрын
Can we add no. Of time visited in this code
@LearningDojo
@LearningDojo 4 ай бұрын
Like how many times a user comes back to the course? Is the house in an LMS?
@billhaf
@billhaf 2 жыл бұрын
Good video! I would like to pull up the month as text though. How would I do that?
@LearningDojo
@LearningDojo 2 жыл бұрын
So basically you would just pass in the "month" variable as the variable in Storyline. That way it just gives you the number of the month and then display that on a page. Does that help?
@YouTubeVanced-xc6te
@YouTubeVanced-xc6te Жыл бұрын
Hi, I tried your approach but what if I want the month in MM format? Like for example for month March it returns only '3' how do I get '03'
@LearningDojo
@LearningDojo Жыл бұрын
You might have to add the 0 manually. So have a condition that does the following. if (month
@YouTubeVanced-xc6te
@YouTubeVanced-xc6te Жыл бұрын
@@LearningDojo thank you!
@jigglypuff8391
@jigglypuff8391 Жыл бұрын
This isn't working for me. I've set up two variables in storyline, one named month and one named todaysDate. They are both text variables. Then I have a text box reading %month% and another reading %todaysDate%. They are spelled the same as the variable in the javascript. I have a trigger that says: when user clicks this rectangle, execute javascript, where I've copied and pasted this code. Yet when I publish this in review 360, nothing happens when I click the rectangle. What am I missing?
@LearningDojo
@LearningDojo Жыл бұрын
Hard to say, most of the time I need to take a look at the code exactly. Can you email me your example? jeff@learningdojo.ninja
@cashmonet1
@cashmonet1 7 ай бұрын
This worked great for displaying the current date... I want to lock out the final test for 24 hours if they fail. I've got everything in place and am using the top pull the system date, but the part I can't figure out is how to check if the current date is at least 24 hours AFTER the date when they failed... I imagine this should be possible but my java skills aren't good enough.
@LearningDojo
@LearningDojo 7 ай бұрын
Hmm, I am not sure how to lock out the quiz though. Are you talking about disabling the Storyline button that allows them to retake the quiz for 24 hours? You might have to have a variable but the problem is keeping that in place after they close the course. That may have to use like a LMS storage or something. Might be beyond what I have ever done as well.
@cashmonet1
@cashmonet1 7 ай бұрын
@@LearningDojo I think I figured it out doing something similar to your months, capturing a variable called "failday" = day, "failmonth" = month, "failyear" = year, and then changing the state of a button when the timeline starts if "failday" < day etc... everything is working as intended, but I need to wait for tomorrow when the system day changes to confirm... if it works I'll post a sample on the storyline forums and update you here. You're video and the month thing was the first steps... resume state appears to only work correctly as a separate storyline file, not when imbedded in rise.
@LearningDojo
@LearningDojo 6 ай бұрын
@@cashmonet1 Sorry for the delay but curious of that worked.
@RaviKumar-je2np
@RaviKumar-je2np Жыл бұрын
Hi... Jeff... Can you please give me this links of this page of ur web page.. So that u can copy code..
@LearningDojo
@LearningDojo Жыл бұрын
It is here learningdojo.ninja/blog/pull_date_into_storyline.html
@mindgulag
@mindgulag Жыл бұрын
Thanks a million, Jeff. This has helped me a lot. I've managed to successfully pull the date and add the 0 before the (single digit( months (September). I've run into a complex problem, however: I've tried to push that storyline line variable (todaysDate) into a certificate (PDF) that already has a learner name in it. Unfortunately, it's not working. I've tried changing the text variable to a string, but that also didn't do the trick. Do you have any ideas about what I might do? Thanks a million!
@LearningDojo
@LearningDojo Жыл бұрын
Hmm, can you email me the exact code you are using? Wondering if it is a syntax error. jeff@learningdojo.ninja
@mindgulag
@mindgulag Жыл бұрын
@@LearningDojo Hi. Thanks a lot for your response! I'm ashamed to admit it but it was a trivial error. I had forgotten to add one small element which caused the entire code to fail. ChatGPT was able to debug it, heh. So it's all good and working. Thanks a lot!
@LearningDojo
@LearningDojo Жыл бұрын
@@mindgulagGreat use of ChatGPT! Yeah I have been there too. I spent hours once trying to debug code and it turned out to be a small syntax error. Welcome to coding 😁
How to Track Video Completion with SCORM [inside Storyline]
17:36
Learning Dojo
Рет қаралды 3,1 М.
Learn JavaScript in Articulate Storyline 360 in 20 Minutes
19:09
Learning Dojo
Рет қаралды 11 М.
ВЛОГ ДИАНА В ТУРЦИИ
1:31:22
Lady Diana VLOG
Рет қаралды 1,2 МЛН
Enhance Your Articulate Storyline 360 Animations Using Greensock
19:02
How to Use JavaScript Local Storage in Articulate Storyline
10:18
Learning Dojo
Рет қаралды 3,9 М.
Grabbing the Learners Name Automagically from the LMS (via SCORM)
11:38
How to create a conditional next button in Storyline 360
8:49
Mark Spermon - Articulate Storyline Tutorials
Рет қаралды 23 М.
How to Host an Articulate Storyline Course on the Web Using Google Cloud
17:31
The eLearning Designer's Academy by Tim Slade
Рет қаралды 17 М.
How to Use Variables & Conditions in Articulate Storyline
49:40
Devlin Peck
Рет қаралды 19 М.
Unlocking JavaScript Arrays for Storyline 360: The Ultimate Guide
8:43
Collect and Display Your Learner's Name | Articulate Storyline
6:33
Lindsay O'Neill Consulting LLC
Рет қаралды 3,9 М.
ВЛОГ ДИАНА В ТУРЦИИ
1:31:22
Lady Diana VLOG
Рет қаралды 1,2 МЛН