Layers not showing from variable triggers
Dec 15, 2017
Hi
I have been looking to find a way to insert an expiry date trigger within my learning to restrict access by clients beyond a certain date. I have inserted javascript obtained from this great discussion forum that does just that but I cannot get the appropriate layers to activate from the variable states created from the java script.
E.g. I want a layer showing the course has expired if the date exceeds the expiry date and I want the course to continue as normal if date is within the date licence.
Any help would be appreciated.
CAS
2 Replies
Change the courseExpired variable to a textvariable, rather than a T/F variable.
I didn't open your project file yet, but keep in mind that most code that checks for a Date checks the date on the user's local computer. They could bypass your expiration by changing the date on their PC.
This discussion is closed. You can start a new discussion or contact Articulate Support.