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

create a text field in Adobe Acrobat to only accept input in English characters

New Here ,
Feb 24, 2023 Feb 24, 2023

Copy link to clipboard

Copied

How can we create a text field in Adobe Acrobat to only accept input in English characters?
If a user attempts to enter a non-English character, the input rejects.

 

Please Help me 🙂

TOPICS
Create PDFs , JavaScript , PDF forms

Views

516

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 ,
Feb 24, 2023 Feb 24, 2023

Copy link to clipboard

Copied

LATEST

You could restrict input to ASCII characters using a keystroke script. 

 

Use this custom keystroke script

if(!event.willCommit)
   event.rc = event.change.split("").every(function(a){return a.charCodeAt(0)< 128});

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

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