> For the complete documentation index, see [llms.txt](https://docs.dapphero.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dapphero.io/features/using-smart-contracts/advanced-automatically-clearing-inputs.md).

# Advanced: Automatically clearing Inputs

When using a HTML Input form field as an input to a smart contract method, DappHero will automatically clear the value of the input form field after each invocation (IE: each time someone click the submit button). This behavior was designed to give users a familiar experience when interacting with a DH powered and to make user their inputs are cleared.&#x20;

However there are some situation where clearing the input field might not be desired, so we have included the ability to override this functionality.&#x20;

### Overriding the default functionality

To override the default functionality, it is necessary to add `auto-clear` flag with a value, `true` or `false`. This should be added any input for which you wish to change the default functionality, or perhaps give the ability to change the functionality while loaded on the page.&#x20;

```markup
<input
    data-dh-property-method-id="000"
    data-dh-property-input-name="simpleMessage"
    data-dh-property-auto-clear="false"
/>
```

| Tag        | Property   | Required? |
| ---------- | ---------- | --------- |
| auto-clear | true/false | optional  |

If there is no `auto-clear` flag, DappHero will clear the input value after the first invocation.&#x20;

Learn more about using `auto-clear` with [invisible inputs](/features/using-smart-contracts/inputs.md#invisible-inputs).
