JavaScript toUpperCase

Problem: Quiz returning ‘passed’ or ‘failed’ what we want to do is do initial cap ‘Passed’ or ‘Failed’ - my thought was to do this in JavaScript.

event action of text caption - named it JScode - type = Javascript

function jsUcfirst(string)
{
return string.charAt(0).toUpperCase() + string.slice(1);
}
Also tried this:
String.prototype.capitalize = function() {
return this.charAt(0).toUpperCase() + this.slice(1)
}

ActivePresenter version: 8.3.2

OS: 10 Pro

Notes: Thanks for your thoughts on this

Hi Patrick,

Please take a look at this article to see if it helps: Customize HTML5 Player Language in ActivePresenter 8 - Atomi Systems, Inc.. You can find the "passed’’ and “failed” translations at the bottom of the list.

Regards,

That looks like it!
I appreciate the assistance.