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

Make a field required if selection is made from dropdown list

drizagon
Registered: Oct 22 2009
Posts: 41
Answered

Hello,

Does anyone know of a way to make a field change from optional to required based on a selection made from a dropdown list?

For example I have a dropdown list that has option 1-3, and I have a hidden field that is optional. When option 3 is chosen the hidden field is visible, but I would also like it to be required before a submit of the form is possible.

My Product Information:
LiveCycle Designer, Windows
StevenD
Registered: Oct 6 2006
Posts: 368
Here is an example of the required property from the JS documentation.

var f = this.getField("myField");
f.required = true;

StevenD