Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

Explorer ,
Sep 28, 2017 Sep 28, 2017

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?

233
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 28, 2017 Sep 28, 2017

cpInfoCurrentDate takes the system date, it will be updated.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 28, 2017 Sep 28, 2017

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 28, 2017 Sep 28, 2017
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources