Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
In the field properties->validation tab, did you try set 'from' and 'to' value?
Copy link to clipboard
Copied
That was the first thing that I tried but it still lets you enter in numbers that are higher than the "To" field.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Thank you so much! This worked perfectly, I really appreciate your help.

