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
11 years agoSuper Hero
Can you use javascript to:
1) analyze the native string pulled from the LMS to detect if it ends with a space followed by a letter
2) if it does, remove the space and the letter
and then 3) perform the split string operation as described in this thread.
Would this work to get rid of those pesky middle initials in those cases where the name is listed as Last, First + Initial ????