February 28, 2019
Creating a unique certificate number without an LMS
Comments
(3)
February 28, 2019
Creating a unique certificate number without an LMS
Learning Designer
Guide 33 posts
Followers: 20 people
(3)

Hi,

I am looking to create a unique number on the certificate of completion that a learner gets upon completing my course. It’ll have the acronym for my company, the year, and then ideally an increasing counter. My problem is that I don’t have an LMS. I’m wondering if anyone has experience with something like a google tracking pixel or other counter that I could install in the index.html file to increase for each person who starts the course and then become a passthrough variable while I take the course. For example:

When I click to start the course, the index file increases by 1 from 1000 to 1001. When I get to the last slide, the certificate of completion, I get one that says whatever info I want on there, plus my unique identifier: CompanyCode_2019_1001.

The numbers don’t have to be strictly sequential, so if 3 people start but don’t finish, it’s fine if the next code is 1005. I just want the numbers to be different.

Any advice is appreciated.

3 Comments
2019-03-06 04:40:59
2019-03-06 04:40:59

eLearning Guy that’s perfect! Thank you so much.

Like
2019-03-02 08:40:22
2019-03-02 08:40:22

Your idea about using that time is great. Captivate has a system variable which I use often for time calculations: cpInfoEpochMS. It has the same meaning as the JS variable.

Like
2019-03-01 01:13:03
2019-03-01 01:13:03

If you just want a random number then you could do this by triggering javascript to get what is known as Epoch time – it’s the number of milliseconds since Jan 1, 1970 0000 UTC.

So it will always be unique. Not sequential, but unique.

If that is acceptable, then you would first create a custom variable in Captivate via the GUI. Then, before you need to reference it (i.e., before you need to assign the certificate number), you must trigger javascript to assign the current epoch time to it. Here is the code to do that:

myCertNum = Date.now(); // assumes you already have created a user variable named myCertNum

But is that really useful without storing it in a database somewhere?

Like
(1)
Add Comment