Forum Discussion

BillMarshall's avatar
BillMarshall
Qrew Member
9 years ago

How do I deal with apostrophe in user name while passing variable to JavaScript?

I pass a variable of Current User to a javascript page.  It works fine unless the name includes an apostrophe (O'Neil).  The formula includes: "var Cuser = '" & URLEncode(User()) & "';" &  How wo...