badge field names

badge field names

by charles steelman -
Number of replies: 2

I found this thread in general asking about field names in the badges message. 

https://moodle.org/mod/forum/discuss.php?d=244416

However I hoped it might be helpful to come here and ask, is there a list of available field names that can be used in the badges message?

Thanks,

Charles

https://moodle.org/mod/forum/discuss.php?d=244416

Average of ratings: -
In reply to charles steelman

Re: badge field names

by Yuliya Bozhko -

Hi Charles,

There is help pop-up on message body field that lists all available substitutions. Just copy paste from there:

"In a badge message, certain variables can be inserted into the subject and/or body of a message so that they will be replaced with real values when the message is sent. The variables should be inserted into the text exactly as they are shown below. The following variables can be used:

%badgename%
This will be replaced by the badge's full name.
%username%
This will be replaced by the recipient's full name.
%badgelink%
This will be replaced by the public URL with information about the issued badge."

Hope this helps!

Yuliya

Average of ratings: Useful (1)