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

Custom Subscripts for a Range

New Here ,
Aug 27, 2021 Aug 27, 2021

I'm trying to find out if there is a subscript that I can enter into the custom validation field that will allow mes to create a customizable range going forward for numbers.

 

I want to put a customizeable limit on a dollar amount field for a temporary home offer.   Right now I have the document set up to enter your own amount but there isn’t a cap on that dollar amount so the potential homebuyer could enter any amount into the form.

 

I need to be able to cap the dollar amount to a particular number so that potential buyers don't go over a specific limit.

TOPICS
PDF forms
713
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 ,
Aug 27, 2021 Aug 27, 2021

Use this as validation script:

var maxAmount = 100000;
if(event.value > maxAmount){
app.alert("You have have entered higher amount then allowed, please enter amount less or equal to: $"+maxAmount+".");
event.value = "";}

Change 'maxAmount' as needed and adapt alert message as you see fit.

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 ,
Aug 27, 2021 Aug 27, 2021

In the field properties->validation tab, did you try set  'from' and 'to' value?

tempsnip.pngexpand image

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 ,
Aug 27, 2021 Aug 27, 2021

That was the first thing that I tried but it still lets you enter in numbers that are higher than the "To" field.

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 ,
Aug 27, 2021 Aug 27, 2021

Use this as validation script:

var maxAmount = 100000;
if(event.value > maxAmount){
app.alert("You have have entered higher amount then allowed, please enter amount less or equal to: $"+maxAmount+".");
event.value = "";}

Change 'maxAmount' as needed and adapt alert message as you see fit.

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 ,
Aug 30, 2021 Aug 30, 2021
LATEST

Thank you so much! This worked perfectly, I really appreciate your help.

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