function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
RK BheemreddyRK Bheemreddy 

How to escape comma in a text field using Java script

Hi,

We are using Drawloop to generate contracts and Docusign to send the contract for esignature. The custom java script button that is created doesn't work as expected when we try to pass the Contact name as a Signer when there is a special character in the Contact Name. I was able to escape single quote using JSENCODE function but when there is a comma in the name, it still doesn't work. Any help is greatly appreciated.

Thanks,
-Ravi
PrasathPrasath
Hi RK,

You can remove the comma from a string using JS Rejex
var str1 = "Hi, Hello";
str1.replace(/\,/g,"");

 
RK BheemreddyRK Bheemreddy
Hi Prasath,

Thanks for the reply. We need the comma in the text. We want the name as is. please let me know if there is a way we can achieve it.

-Ravi