Totara Social Open Discussions

Customizing 'code' in Custom Certificate

 
Divya G
Customizing 'code' in Custom Certificate
by Divya V - Tuesday, 23 March 2021, 9:59 AM
 

Hi,

I was designing a course completion certificate using the 'Custom Certificate' activity. We already have a certificate design that we use and I was able to recreate all of it, except for setting the 'Code' on the certificate.

We have a specific nomenclature for each course completion certificate, and I couldn't find an option to customize it and make just part of it dynamic.

For example, the 1st person to finish the course would have the certificate code as XYZ0001, the 2nd person would have XYZ0002, and so on. Could anyone please help me with this?

Regards,

Divya

Craig Eves
Re: Customizing 'code' in Custom Certificate
by Craig Eves (Totara Support) - Tuesday, 23 March 2021, 3:36 PM
Group Totara

Hi Divya

The code that is generated by the certificate module is currently a 10 random letters and numbers 

To generate a custom code you would need to get a developer to modify the function certificate_generate_code in the mod/certificate/lib.php code.

This will need to be tested and supported internally by the developer rather than Totara 

Regards