You need to sign in to do that
Don't have an account?
Apostrophe issue
Hi,
I am facing a apostrophe issue in my Visual force page.
I have a custom page which has a Account field which is a lookup, when the user clicks on the magnifying glass my custom Visual force page is opened. Everything works fine, except the time when a particular account has a name with an apostrophe.
I have written a javascript function that closes the popup as soon as the account is selected, the selected accounts name gets added in the text field on my main page.But when an apostrope is found the javascript function does not get callled at all.I have tried many approaches but did not get to a solution.
If anyone has come accross this issue then please let me know what needs to be done.
Thanks in advance!
have you tried the JSENCODE function?
All Answers
have you tried the JSENCODE function?
Yes i used this function and it worked.
Thanks!!!