Copy link to clipboard
Copied
Hello
Any one can help me
Generate Java script
To remove Symbol when I am going to pad at failed at pdf.
Such as
Take copy of name from word
Tom_Henry/Kathleen
When I paste at pdf
I need to be shown without any symbol
Tom Henry kathleen
Copy link to clipboard
Copied
Enter the following custom validation script in the field:
event.value=event.value.replace(/_/g," ").replace(/\//g," ");
Copy link to clipboard
Copied
Many thanks sir
You slove big problem for me
Copy link to clipboard
Copied
It is Working
I use your script and add all symbols need to understand shown and I put space between " "
It is shown as above example
Tom Henry kathleen
Many thanks
Copy link to clipboard
Copied
Are those the only two symbols you want to remove? What about a period, a comma, a hyphen, etc.?
Copy link to clipboard
Copied
Yes dear
What is script if I need to remove comma and period
Many thanks in advance
Copy link to clipboard
Copied
Instead of doing it one character at a time, you can use this code to remove everything that's not a letter:
event.value=event.value.replace(/[^a-z]/ig," ");
However, keep in mind there might be some characters you want to keep, such as an apostrophe (eg. "O'Donnell"), a hyphen (eg. "Grier-Smith"), or a period (eg. "John H. Smith"). Names can have a lot of variance...
Copy link to clipboard
Copied
Why not remove it in word before copy?