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

Form fields - textboxes - ecluding one if something input in another

bonner
Registered: Nov 26 2010
Posts: 3

Apologies if this has already been answered - had a look and didn't find anything similar.
 
I've created a form where people can order catering. there's often confusion with tea/coffee (we supply) and hot water urns (bring your own teabags). I want users to:
 
1. not be able to put anything into "hot water urns" field if they have input anything in "tea/coffee" fields
 
2. get an alert saying that they don't need hot water urns if they take "coffee/tea"
 
3. get an alert reminding them to bring their own supplies if they go for "hot water" option
 
Using Acrobat Pro 8.1.3
Not very savvy with custom Javascripts but could copy and paste it:)

My Product Information:
Acrobat Pro 8.1.3, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Take a look at this article. It covers the basics, but you'll need to figure out how to apply it to your particular form.

http://acrobatusers.com/tutorials/2007/09/js_disabling_fields


Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script