Featured Categories
-
Lectora®
Lectora® is the most trusted authoring tool in the world. Rock out your creativity! Author courses any way you like. Lectora adheres to best practices for Accessibility and Web Content Accessibility Guidelines (WCAG), offers responsive authoring for eLearning, and publishes to any LMS (Learning Management System).
-
CenarioVR®
Experience virtual reality through CenarioVR®, our training and virtual reality (VR) authoring software that allows you to create immersive learning in minutes! No coding required!
-
Rockstar Learning Platform®
Our Rockstar Learning Platform® has all the features you’ll love. Help your employees be better at their jobs, more valuable to your company, and most effective in servicing your customers.
-
The Training Arcade®
Level up your learner engagement with the Training Arcade®! The Training Arcade is a library of fun, mobile-ready, casual games that can be rapidly customized with your content to create effective gaming!
-
ELB Learning Content
Did you know that our AssetLibrary™ has over 120 million engaging, interactive, and awe-inspiring templates and assets to help you become an eLearning Rockstar®?
Use Current Date to Trigger Action

Once I determine that I can do that, I need to figure out the best way to trigger the proper order regardless of the month. My thought is to create one action group for each month that plays the images in order, then use the OnShow Action to determine which one to play. My concern is that it might take a long time to process that calculation. I'm open to ideas.
Comments
-
There seems to be a bug with the conditions panel... CurrentDate today contains "17.08.2017" (may be different where you are). If I check whether it contains "08" it works fine, only it would be true for "08.12.2017" as well. If I check for ".08" to make sure it can only be the month it won't work. It seems any "." in the value field breaks the code. CurrentDate equal to "17.08.2017" is not firing the action.
I attached a sample in that I'm using a tiny bit of custom javascript to check which month we currently have, but most of it is pure Lectora.0 -
Interesting. For me, CurrentDate displays "Thursday, August 8, 2017". I'm guessing the value is based on the Windows default format for Long Date, but I haven't tested to confirm.
In any case, once using JavaScript you can just use the JS Date() object as Tim as done. Alternatively, if there's some benefit to using Lectora's CurrentDate instead (I don't see one, but I wouldn't rule it out), this works:var dt = new Date(VarCurrentDate.value);
0 -
Stan, thanks for your response and your suggestion about the difference in how the date is presented. I appreciate your time in looking at this for me.0
-
Tim, this is perfect; your sample does exactly what I need it to do. Thank you so much for taking time to put that together.0
Categories
- 35.9K All Categories
- 110 ✫ Announcements
- 33.1K Lectora®
- 31.1K Lectora Discussions
- 29K Lectora Desktop
- 2K Lectora Online
- 2K Lectora Feature Requests
- 71 Lectora User Groups
- 27 ELB Learning Content
- 27 ELB Learning Content Discussions
- 343 CenarioVR®
- 204 CenarioVR Discussions
- 139 CenarioVR Feature Requests
- 44 Rockstar Learning Platform®
- 41 Rockstar Learning Platform Discussions
- 108 CourseMill®
- 108 CourseMill Discussions
- 48 ReviewLink®
- 48 ReviewLink Discussions
- 7 The Training Arcade®
- 7 The Training Arcade Discussions
- 938 All Things eLearning
- 39 eLearning Development
- 546 Learning Management System (LMS) Integration
- 333 Web Accessibility
- 1.2K ♪ The Green Room
- 9 Additional Learning Products