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.
    Note To clear the selections in a drop-down list or table but retain the data for those controls, use the Clear Selection action. See Add a Clear Selection action.
  • Sets the check box fields to indeterminate.
  • Makes all other fields blank.

  1. On the Form Modeling bar, click Actions.
  2. On the Actions page, click Add Generic Add.
  3. On the Type list, select Clear.
  4. Enter a Name and Description for the action.
  5. Optionally, configure a unique action for each language separately. See Configure multilingual actions for a form or control for more information.
  6. To specify the fields or form variables to be cleared, consume the required fields or form variables in the Fields/Form Variables box.
  7. Click OK.

    The newly created action is added to the table.

  8. Click Save.
  9. 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.