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

I need to limit the value of a form field

Participant ,
Oct 22, 2019 Oct 22, 2019

Hi all,

I apologise if this has been asked but I can't find it under any of my searches.

 

I am using Abobe Acrobat Pro DC. I have created a fillable PDF form and I have a field that I have set the format to Number, 0 decimal places, and currency value to $.

 

What I am looking for is to only allow a number between 1 and 25,000. Any number over 25,000 will not be allowed.

I am assuming that this would be some kind of script. I don't want character limits, it needs to be based on value.

 

Thanks in advance.

Paul

2.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 ,
Oct 22, 2019 Oct 22, 2019

You don't need a script. Go to the field's Properties, and under the Validate tab enter the following:

 

clipboard_image_0.png

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 ,
Oct 22, 2019 Oct 22, 2019

You don't need a script. Go to the field's Properties, and under the Validate tab enter the following:

 

clipboard_image_0.png

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
Participant ,
Oct 23, 2019 Oct 23, 2019

Thanks Try67. Muchly appreciated.

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 29, 2020 Oct 29, 2020

That is awesome, but what if I wanted to automatically change it back to the highest allowed limit. For example, this field is interest rate + 3. It cannot however go over 18%

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 ,
Oct 29, 2020 Oct 29, 2020

For that you would need a script. Something like this:

if (event.value>0.18) event.value = 0.18;

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 29, 2020 Oct 29, 2020
LATEST
Thank you so much. It worked like a charm. I'm very thankful for your
assistance!!
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