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

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

New Here ,
Feb 24, 2023 Feb 24, 2023

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
611
Translate
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
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

Translate
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