Forum Discussion
AndrewRost
13 years agoCommunity Member
Retrieve LMS User Name as Variable
I know you can have a user fill in a text box with their name and then later use that variable for personalization. What we would like to do is programmatically retrieve the user name from the LMS....
OwenHolt
Super Hero
But what if the last name is complex? de Jesus, Von Trapp, Van Gogh??????
Jonathan_Hill
2 years agoSuper Hero
That was my concern too - but on my LMS it appears this code parses the name from only the first break. So Brian De Palma is split into Brian and De Palma. As always with Javascript, results may vary but this worked for me on Docebo.