How or can you make a hidden textBox mandatory if the checkBox associated with the hidden field is checked? I am using LiveCycle that is included with Acrobat Pro 7.0.9. To go into more detail.
There are 3 checkBoxes, one is required to be check. Depending on which box has been checked a invisible textBox will appear, and needs to become a mandatory field.
There is also a Mandatory "null" test property for fields in LiveCycle forms. If it is set to "error", Acrobat will display a popup message set by the "mandatoryMessage" property of the field.
you could have check box code that looks like this
if(..check on...)
{
myField.presence = "visible";
myField.mandatory = "error";
myField.mandatoryMessage = "Must Fill"
}
else
{
myField.presence = "invisible";
myField.mandatory = "disabled";
}
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script