Adobe LiveCycle Designer ES2 has a new feature called Action Builder. Action Builder provides an interface for users who wish to add scripting to a form but do not have the scripting knowledge or background. Using a "wizard like" interface, actions can be created and conditions and results added to produce powerful functionality within dynamic Designer PDF forms.
Adding an Add/Remove Instance Button

This example illustrates how to create and enable an Add/Remove button to add and remove rows from a table.
The form shows all of the necessary form objects including a table and two buttons which will be used to control the addition and removal of a row from the table on the form.
Enable the Repeating Row

Before the buttons can be used to add/remove instances of the table rows, the table row must be configured to allow it to repeat.
First of all the Hierarchy panel is opened from the Window menu and the row (Row1) selected.
Set the Repeat Row Parameters

With the row selected it can be set to repeat from the Object panel by selecting the Bindings panel and clicking the Repeat Row for Each Data Item check box.
Add a New Instance

To enable the Add button to add a new row when it is clicked launch the Action Builder from the Tools menu.
Configure the Action Builder Dialog

1. Create a New Action by clicking the New Action icon
2. Set its name
3. Set the Condition by selecting the add button object from the blue link
4. Set the Result by selecting the Add new Instance Result from the blue link
5. Click Ok
These settings enable the Add button to add a new row to the table each time the button is clicked.
Add Rows to the Table

Preview the PDF by clicking the Preview PDF tab.
By clicking the Add button a new row instance is created each time.
Note – to enable the Remove button steps 1- 5 (above) should be repeated with a new Action and the Remove an Instance Result used on the remove button.
Related Posts:

This work is licensed under a Creative Commons Attribution 2.5 UK: Scotland License.




Follow us