# signatureRedraw

## Description

Clears a canvas and allows users to redraw the signature.

## Input / Parameter

| Name        | Description                | Input Type  | Default | Options | Required                           |
| ----------- | -------------------------- | ----------- | ------- | ------- | ---------------------------------- |
| component   | The name of the component. | String/Text | -       | -       | Partial (Yes if no 'componentId'.) |
| componentId | The id of the component.   | String/Text | -       | -       | Partial (Yes if no 'component'.)   |

**\* Note:** Either component or componentId must have value in order for this function to work.

## Output

N/A

## Callback

N/A

## Video

Coming Soon.

## Example

### Steps

1. Add both a signature component and a button to the page.

   ![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-09b18656ed7041d8c976060ae90c7f5fd327e347%2FsignatureRedraw-step-1.png?alt=media)
2. Select the button component and add `signatureRedraw` to the event flow. Enter the signature component's name `Signature207` in the "component" field.

   ![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-ca27bc6ca8f5909c3134e3c0c2ce62b525fde601%2FsignatureRedraw-step-2.png?alt=media)

### Result

Clicking the button will clear the signature component.

## Links
