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

Custom Format Script

New Here ,
Dec 12, 2016 Dec 12, 2016

I'm completely new to this, so I apologize in advance for my lack of knowledge...

I need a student ID custom format script for a field in several of my forms to be set to enter specifically the letter P followed by 10 numbers.  The P can always be there, but I need the person that fills out the form to be able to enter exactly and only 10 numbers after the P.

Can anyone help me and tell me what I need to do, or where I can learn how to do this please?

TOPICS
PDF forms
18.8K
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
1 ACCEPTED SOLUTION
Community Expert ,
Dec 13, 2016 Dec 13, 2016

Hi.

Select the text field, right-clic : Properties : Format : Special : Arbitrary mask

Then use this mask:

P9999999999

More info: search the word "arbitrary" in this document https://helpx.adobe.com/pdf/acrobat_reference.pdf


Acrobate du PDF, InDesigner et Photoshopographe

View solution in original post

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 ,
Dec 13, 2016 Dec 13, 2016

Hi.

Select the text field, right-clic : Properties : Format : Special : Arbitrary mask

Then use this mask:

P9999999999

More info: search the word "arbitrary" in this document https://helpx.adobe.com/pdf/acrobat_reference.pdf


Acrobate du PDF, InDesigner et Photoshopographe
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
New Here ,
Dec 13, 2016 Dec 13, 2016

Thank you so much!  This helped immensly!!!

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
New Here ,
Oct 03, 2019 Oct 03, 2019
Which script or arbitary mask would you use to not limit amount of numbers entered?
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 12, 2020 Feb 12, 2020
LATEST

Place this as a "custom format script" :

 

if(event.change.charCodeAt(0)>57|event.change.charCodeAt(0)<48)
{app.beep(); event.rc=false;}


Acrobate du PDF, InDesigner et Photoshopographe
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