Add a Clear action
Use the Clear
action to clear (delete) any data on form controls at runtime. This includes
clearing selected form variables, text box fields, check box fields, drop-down
lists, and tables.
The Clear action does the following:
- Removes the entire list associated with the drop-down.
- Deletes all rows of the table. To clear the selections in a drop-down list or table but retain the data for those controls, use the Clear Selection action. See
- Sets the check box fields to indeterminate.
- Makes all other fields blank.
- On the Form Modeling bar, click Actions.
- On the Actions page, click Add .
- On the Type list, select Clear.
- Enter a Name and Description for the action.
- Optionally, configure a unique action for each language separately. See Configure multilingual actions for a form or control for more information.
- To specify the fields or form variables to be cleared, consume the required fields or form variables in the Fields/Form Variables box.
-
Click
OK.
The newly created action is added to the table.
- Click Save.
-
Associate the action with the control to trigger this action. To
call the Clear action upon form load, associate the action with the form. See
Associate an action with a form or
control.
When this action is triggered, the data on the selected fields and form variables is cleared.