I'm attempting to pre-populate data into a visualforce page utilizing a custom button. In my use case, this is DocuSign custom button logic.
I will be providing Salesforce merge fields as well as text strings.
I've successfully coded URLENCODE in addition with JSENCODE so i do not receive any syntax errors from merged data. However, in my fields and text strings with apostrophe's, it adds a backslash in front \'.
Below is an example of one of my variables:
CES="{!URLENCODE(JSENCODE(Account.Name))} {!URLENCODE(JSENCODE(Opportunity.Name))} - eSignature";
My Account Name in Salesforce = "Dunder Mifflin's".
In the visualforce page it is displayed as "Dunder Mifflin\'s"
Is there any way to ENCODE the apostrophe, but still keep the format the same without the backslash?
Thanks in advance.