The Clear Data control is used to clear data from any Page within a Workflow. When it is triggered, all data on the Page(s) specified in the Advanced Options tab in the Field Properties will be cleared from the database.
This control is part of the Intermediate control pack, and will only be available if you have the appropriate licence part.
How To
Add a Clear Data control to the Workflow Page. The button's text and style can be configured in the Options and Styling tabs of the Field Properties.
Open the Advanced Options tab in the Field Properties:
Clicking the Select button at the bottom will bring up a page selection modal:
Any pages to be cleared can then be selected from this list (including using the Ctrl or Shift keys to select multiple pages). Click the Add button:
Click the Save button in the Field Properties modal when finished.
Notes
As the Clear Data control only clears the data from the database, should it be targeted on either the current Page or a Page that shares Used Fields with the current page, then if it is not set to run Before Page Load then it may cause the targeted data to be reinserted to the database. This is because the Fields contained on the current Page will have already taken the values from the database prior to it being cleared, and then when the Page is navigated it will cause this data to be reinserted to the database.
As with other button-type controls, it is possible to trigger this by JavaScript or Update Links. Please see the .click() article for more information and an example regarding using JavaScript.