These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Lock form if value is out of range

mark4444az
Registered: Nov 17 2011
Posts: 11

Hi,
Newbie here. I am making a form where I use a javascript to
validate values. If a value is out of range I put "invalid"
in the text box in question. Is there some way to lock the form until the right value is put in a box?
So if there are 3 boxes, the form is locked until a valid
value is put in the first box, then on to the next one.
I realize this may be a chicken/egg scenario but thought I would run that by the group. Thanks!

My Product Information:
Acrobat Pro 9.4, Windows
try67
Expert
Registered: Oct 30 2008
Posts: 2398
You can set the fields as read-only until a valid value is entered, sure.
Use the same logic you used to populate the text box to enable/disable the other fields.

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

mark4444az
Registered: Nov 17 2011
Posts: 11
OK. That makes sense.
Given that, I think I may be able to program all the fields to look for an "invalid" in
any field, and if there are any invalids then lock = true.
Don't quite know the syntax yet but will figure that out.
try67
Expert
Registered: Oct 30 2008
Posts: 2398
I think it should be done from the script that validates the first field (or the calculate script of the text box which displays the "Invalid" value).

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com