We are planning to deliver a training as HTML5 to customers.
The agreement is that they could use it for X months.
Is there a way to add this check to the HTML5 generate by Active Presenter (e.g. by a script executed on startup to show a message and finish the presentation after a certain date)?
For your information, HTML5 only runs on the client-side; therefore, it’s uncertain if adding the check here would be effective. For example, learners can pass it by adjusting the date on their computers. To establish certainty, you need to perform the check on the server-side.
In case you still wish to implement it using HTML5, please refer to the project below. All the steps required are included in the slide.
The complete code is already included in the sample project above. You can preview the output and find the detailed script code in the On Load event of the project. (To access it, navigate to ActivePresenter > Project > Properties > Interactivity tab in the Properties pane.
Thank you, Hang! I got it! I could not understand much about where should we set the date to have it expire. Can you give me an example if I want it to expire in 100 days?
In this case, you calculate the day that is 100 days after and adjust it as the default value for expiryDate (Home tab > Variables > Double click on the expiryDate variable). For example: