Forum Discussion

Nedim's avatar
Nedim
Community Member
25 days ago

Persistent Certificate/Completion Date

Hi DenisaSim 

I thought it would be best to address this separately since it's different from just adding a certificate date. Based on your question, I understand you need the date to stay fixed at the original completion date rather than updating to the current date each time.

I've attached a simple Storyline file with two JavaScript triggers:

  1. One shows the current date
  2. The other creates and maintains a persistent completion date

The persistent date works by storing it in the browser's memory (using localStorage) so it survives even if the course is restarted. You'll see two variables in the file:

  • "systemDateToday" (shows current date)
  • "certificateDate" (shows the fixed completion date)

There are instructions on the slide to help you test how it works. Let me know if you need any help setting this up or if you'd like to make any changes to how the date appears.

1 Reply

  • DenisaSim's avatar
    DenisaSim
    Community Member

    Thank you, Nedim! I tried with the variable and java script you sent and it doesn't work, it doesn't take anything. The idea is that I load the courses in totara. When I added the fnam (first name) and lname (last name) variables, they correctly take the user's first and last name, but the problem is with the date. In the system it appears with completion date. I tried in the java script you gave me, to strictly modify the name and now something was taken, but was the current date, although I tested it on my user and I completed in August 2022. :(