New User Profile Fields in Certificate

New User Profile Fields in Certificate

by Donna Smith -
Number of replies: 1

I've created a new user profile field with the short name of license that I need to get to print on the Certificate.

I've tried ALL the suggestions without success. So I'm starting from scratch asking for help--hoping someone will have pitty on this beginner.

The closest I've gotten is using this code but apparently I need some additional  code that will tell this line where to get the data.

cert_printtext(150, 255, 'C', 'Helvetica', '', 15, utf8_decode(get_string('license', 'certificate').': '.$USER->license));

HELP!!!!

Average of ratings: -
In reply to Donna Smith

Re: New User Profile Fields in Certificate

by Donna Smith -

Ok instead of making a new profile field, I just used one of the Advanced fields, I chose IDNumber, for our license number. The ID field prints just fine on the certificate. So now I am a happy camper.