The example demonstrates how to manipulate the visual properties of an object; in this case, a text field. For example, selecting the Make the Field Wider check box expands the fillable area of the text field to four inches.
Note: In this example, the check boxes do not have unique object names; therefore, LiveCycle Designer ES assigns an instance value to reference the object. The check box script uses an if-else statement to give the effect of selecting and deselecting.To see this scripting example and others, visit the LiveCycle ES Developer Center www.adobe.com/devnet/livecycle.When the check box is selected, the field is moved according to the x and y settings. When the check box is deselected, the field is returned to its original location.When the check box is selected, the field changes to 4 inches. When the check box is deselected, the field width changes to 2.5 inches.When the check box is selected, the field height changes to 1.5 inches. When the check box is deselected, the field height changes to .5 inches.When the check box is selected, the field border changes to red. When the check box deselected, the field border changes to white.When the check box is selected, the fillable area of the text field changes to green. When the check box is deselected, the fillable area of the text field changes to white.When the check box is selected, the fillable area of the text field adjusts to accommodate the value. When the check box is deselected, the fillable area of the text field does not adjust.When the check box is selected, the font of the value changes to Courier New. When the check box is deselected, the font of the value changes to Myriad Pro.When the check box is selected, the font size changes to 14 pt. When the check box is deselected, the font size changes to 10 pt.When the check box is selected, the text field value is aligned to the top. When the check box is deselected, the text field value is aligned to the middle.
When the check box is selected, the text field value is aligned to the center. When the check box is deselected, the text field value is aligned to the left.
When the check box is selected, the value that is defined by using a script appears in the text field. When the check box is deselected, the default value (which is also defined by using a script) appears in the text field.
When the check box is selected, the alternate caption text that is defined by using a script appears as the caption. When the check box is deselected, the default caption (which is also defined by using a script) appears in the text field.
When the check box is selected, the field border changes to a solid box. When the check box is deselected, the field border changes to 3D.
Use the resetData method to reset all of the check boxes to their default value (Off).
Use the remerge method to remerge the form design and form data. In this case, the method effectively returns the text field to its original state.