clear
Description
A function to clear the canvas and allow users to redraw the signature.
Input / Parameter
component
The name of the signature component.
Text
-
-
Yes
Output
Note: The signature component will be updated and clear the canvas.
Example
In this example, we will clear the current signature canvas.
Steps
Drag a
signatureandbuttoncomponent into the canvas and open theActiontab. Label the button "Clear".
Select the
pressevent of the button component and drag theSignature.clearfunction to the event flow. Select the signature component that should be cleared when this button is clicked.
Save and preview the app. Sign on the signature component canvas, then click the 'Clear' button to clear the canvas.

Result
The canvas of the signature component specified in the
componentparameter will be cleared.
Links
Related Information
See also:
Components
Last updated