Forum Discussion
Setting an expiry date for published content
Hello everyone, this was posted years ago but I can't seem to find solutions to this. Is there something that I am missing? I would appreciate a response or any support on this matter. I also would like yo be able to set an expiry date on SCORM files created in Rise. Thank you! :D
I've done this multiple times in Storyline with JavaScript for clients and it works well. Connect with me on LinkedIn and I'll walk you through it.
Phil is correct that you can use this to [partially] expire a course in Rise. It isn't 100% because of the way progress bookmarking occurs in Rise but it will prevent NEW attendees from accessing an expired course.
- LeslieBucher4 months agoCommunity Member
Hi Owen- Not sure if you're still within this community, but seeking assistance on getting the Javascript correct to expire a course. Please let me know if you are still able to execute this. Unable to contact you through your ELH profile.
- OwenHolt4 months agoSuper Hero
Yes, I'm still here, and YES, I'm happy to help. :)
- LeslieBucher4 months agoCommunity Member
Great! I downloaded the expirydate Storyline file from this thread but am not well-versed in Javascript and cannot seem to get the JS right in the trigger. It has the following:
var player = GetPlayer();
var currentDate = new Date();
var expiryDate = new Date("January 25, 2016 13:00:00");
if(expiryDate < currentDate){
var expiry = "True";
} else {
expiry = "False";
}
player.SetVar("courseExpired", expiry);Is this what you use?
Related Content
- 9 months ago