Anyone got input type="reset" horror stories or has it been unfairly demonised?
I've found keeping the reset button on a local form (yes I know action="javascript:void()" on input type="submit" is frowned upon) hidden and removed from tabindex until after the first action helps prevent it from being accidentally clicked/activated.
Has anyone found creative uses for "reset" inputs that they can share, or do you just avoid them entirely?
| The UX Perspective | The Developers |
|---|---|
| Accidental Clicks: Users make mistakes and lose data. | Over-engineering: JavaScript developers waste time writing custom code for something the browser does natively. |
| Confusing Behavior: It doesn't "empty" fields; it reverts them to defaults, which confuses users on "Edit Profile" pages. | Great for Filters: It is the perfect tool for massive control panels and search filter sidebars. |
| Redundant: Most users just change the fields they need or abandon the page entirely. | Predictable: It behaves exactly according to the HTML spec every single time. |