Ben Gottesman
Ben Gottesman

Reputation: 11

Apostrophe in DocuSign for Salesforce URL button

We recently converted our DocuSign for Salesforce buttons from JavaScript to URL format and I'm having trouble now getting an apostrophe to show up in my subject line.

In the JavaScript button code, the format was:

CES='Document for '+ Account.Name + '\'s Approval '

However in URL format, this outputs as:

Document for Test Corp\'s Approval

How do I get the apostrophe to appear properly?

Thank you.

Upvotes: 1

Views: 123

Answers (1)

Ben Gottesman
Ben Gottesman

Reputation: 11

There might be a better solution than this but I figured out that if I use a Custom Label I could make this work.

I created a Custom Label called Apostrophe with a value of ' I could reference that in the code.

CES='Document for '+ Account.Name + $Label.Apostrophe + 's Approval '

That seems to do the trick.

Custom Label

Upvotes: 0

Related Questions