• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Symbol java script

New Here ,
Sep 29, 2024 Sep 29, 2024

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

TOPICS
JavaScript , PDF forms

Views

90

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 29, 2024 Sep 29, 2024

Copy link to clipboard

Copied

Enter the following custom validation script in the field:

 

event.value=event.value.replace(/_/g," ").replace(/\//g," ");

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 29, 2024 Sep 29, 2024

Copy link to clipboard

Copied

Many thanks sir

You slove big problem for me 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 29, 2024 Sep 29, 2024

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 29, 2024 Sep 29, 2024

Copy link to clipboard

Copied

Are those the only two symbols you want to remove? What about a period, a comma, a hyphen, etc.?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 29, 2024 Sep 29, 2024

Copy link to clipboard

Copied

Yes dear 

What is script if I need to remove comma and period 

Many thanks in advance 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 29, 2024 Sep 29, 2024

Copy link to clipboard

Copied

LATEST

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...

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 29, 2024 Sep 29, 2024

Copy link to clipboard

Copied

Why not remove it in word before copy?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines