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

Check for data and if so, move to required field

bsoldner
Registered: Nov 17 2006
Posts: 7
Answered

Our user enters data into a field (YrEndAmt). That field (YrEndAmt) has a description field (YrEndAmtDesc) that they must fill in IF there is data in YrEndAmt.

How to verify there is data in YrEndAmt before forcing the user to enter data in the YrEndAmtDesc field? I'd like the user moved to YrEndAmtDesc if data entered equals yes. If no, bypass YrEndAmtDesc and go to the next field (YrBegAmt).

Thanks in advance!

My Product Information:
Acrobat Pro 8.1.7, Windows
try67
Expert
Registered: Oct 30 2008
Posts: 2399
Which kind of field is it? A text field?
If so, you can use something like this in YrEndAmt's custom calculation field:
if (event.value=="yes") {this.getField("YrEndAmtDesc").setFocus();} else this.getField("YrBegAmt").setFocus();

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

bsoldner
Registered: Nov 17 2006
Posts: 7
So simple Thanks!

Then if it's yes for YrEndAmt and user doesn't enter data for YrEndAmtDesc, how to alert them yet again that a description is required? BUT doesn't stick them in a purpetual loop till data is entered into that YrEndAmtDesc - that is annoying.