Copy link to clipboard
Copied
OK here is the scenario,
I want to create a custom certificate for a course, create a print button and all.
My question is that I will be inserting the variable cpInfoCurrentDate plus a valid date 1 year away. That I can do. My question is that if the learner logs back in to their account 6 months later and goes back to the course to print a certificate because they lost it what will the date be? The original date the certificate was populated with cpInfoCurrentDate or the date now 6 months later?
Copy link to clipboard
Copied
cpInfoCurrentDate takes the system date, it will be updated.
Copy link to clipboard
Copied
Is their any way to make the date static once it is initially assigned the value.
Copy link to clipboard
Copied
You would need to use the original date supplied by the system variable cpInfoCurrentDate to assign as value of a custom user variable and then persist (save) that value outside the Captivate module so that it could be retrieved again at a later date if the user reopened the module again.
It is possible to do this for HTML5 content with the CpExtra HTML5 widget by persisting the variable value in Local Storage. However, it could not be guaranteed that an update to the user's system would not potentially wipe out the Local Storage values at any time.