Skip to main content
Inspiring
September 28, 2017
Question

If I use cpInfoCurrentDate for a custom certificate will the date change

  • September 28, 2017
  • 1 reply
  • 285 views

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?

    This topic has been closed for replies.

    1 reply

    Lilybiri
    Legend
    September 28, 2017

    cpInfoCurrentDate takes the system date, it will be updated.

    RStedmanAuthor
    Inspiring
    September 28, 2017

    Is their any way to make the date static once it is initially assigned the value.

    RodWard
    Community Expert
    Community Expert
    September 28, 2017

    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.