Forum Discussion
JTSmythe-fdd526
6 months agoCommunity Member
Capitalize first letter in a text variable
Hello,
A few years ago, I created a course where I captured the learner's name using text variables and was able to capitalize the first letter of their name regardless of how they entered it. I t...
Nathan_Hilliard
6 months agoCommunity Member
Here are a few examples, pulled from https://stackoverflow.com/questions/196972/convert-string-to-title-case-with-javascript/46774740#46774740.
It depends upon what type of names you expect, whether you want to adjust any letters other than the first, whether you need hyphens, etc. You can modify your preferred function.
Try it: https://360.articulate.com/review/content/61a18f59-3b8d-439a-827c-7e96d2bd854f/review