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

Custom number formating for form in Acrobat Pro DC

New Here ,
Dec 12, 2022 Dec 12, 2022

Copy link to clipboard

Copied

Hi, 

I was wondering if there is a way to do a custom number format for an entry form in Acrobat Pro DC. 

The number format I'm looking for is 

##-######

Example: 22-123456

The format category doesn't list any options that fit this formatting, and I didn't see any under the special options tab so I'm assuming I will have to do a custom script. I have no experience with writing a Javascript. Anyone able to offer advice?

 

 

TOPICS
Edit and convert PDFs , JavaScript , PDF forms

Views

964

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

correct answers 1 Correct answer

Community Expert , Dec 12, 2022 Dec 12, 2022

You can easily do this the Special arbitraty mask buitl-in feature and if necessary limitting the number of characters.

 

You may also employ a custom format script.

 

In both mehtods you should specify an arbitray mask with the following expression:

 

99-999999

 

However, I've read before in these forums that 9 is a reserved character to specify digits only, and I am not sure if it could trigger errors.

 

In which case, the way to go is with a script using the util.prinx() method.

 

In any case

...

Votes

Translate

Translate
Community Expert ,
Dec 12, 2022 Dec 12, 2022

Copy link to clipboard

Copied

You can easily do this the Special arbitraty mask buitl-in feature and if necessary limitting the number of characters.

 

You may also employ a custom format script.

 

In both mehtods you should specify an arbitray mask with the following expression:

 

99-999999

 

However, I've read before in these forums that 9 is a reserved character to specify digits only, and I am not sure if it could trigger errors.

 

In which case, the way to go is with a script using the util.prinx() method.

 

In any case, give it a try and see if works.

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 ,
Dec 12, 2022 Dec 12, 2022

Copy link to clipboard

Copied

Thank you so much! That worked

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 ,
Dec 12, 2022 Dec 12, 2022

Copy link to clipboard

Copied

LATEST

You're welcome.

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