Retain Name and Date When Reprint Certificate at Later Date

Our courses are used for continuing education purposes, and students invariably lose their certificates by the time they have to report them. The courses are published to an LMS but we can't use the LMS's certificate function (for reasons not discussed here), so I'm trying to include a reprint functionality within the course itself. My current structure is as follows;


I've created two new variables - pass_date and pass_name, both initially empty, and both set to retained.


When student passes quiz, they are taken to a Congratulations page, where they have the choice of printing one of several certificates - they pick which certificate depending on the regulatory body they are using the CE for. The Congratulations page has the following On Show Commands:


On show, modify pass_date to VAR(CurrentDate), condition: pass_date is Empty

On show, modify pass_name to VAR(student_name), condition: pass_name is Empty


Then each certificate has On show actions to change the Date and Student Name to pass_date and pass_name


There is a Reprint Certificate page, accessible only from the Menu, that provides links to the Certificates for reprinting purposes.


After publishing this to the LMS, the certificates work the first time as they should (i.e., right after passing hte quiz), but if I exit the course and launch it again from the LMS, then go to the Reprint Certificate page, the certificates are blank.


What have I missed?


Thanks!

Discussions have been disabled for this post