Acrobat User Community Forums

You are not logged in.     Log in to your AUC account.     Don't have an account? Sign up today

#1 2007-05-08 15:54:19

NancyM
Member
Registered: 2007-04-24
Posts: 12

Validation

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.


My Product Information:
Acrobat Pro 7 / Windows

Offline

 

#2 2007-05-19 12:52:38

thomp
Member

Registered: 2007-04-23
Posts: 1027

Re: Validation

Mandatory for what?  To submit data?  You can include a script in the submit button, or whatever other action this field is required for, that tests for the field's value. 

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";
}

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson

AcrobatUsers.com  >>  User Groups • News • Events • Articles • Blogs • How To • Resources • Member Log in