This
example demonstrates how to make a field required at run time.
In this example, when the Set as Required button is clicked,
if the form filler attempts to submit a form without typing some
text in TextField1, an error message appears.
To see this scripting example and others, visit the LiveCycle
Developer Center.
Scripting for the Set as Required buttonThe
following script is for the Set as Required button:
TextField1.validate.nullTest = "error";
You
can also use one of these two scripts:
TextField1.mandatory = "error"
TextField1.mandatoryMessage = "this field is mandatory!"
|
|
|