Attributes · formaction
Which form-overriding attributes can a submit button have?
Each one overrides the matching attribute on the <form>, only for submits from that button.
| Attribute | What it does | Docs |
|---|---|---|
formaction | The URL this button submits to, like formaction="/save-draft". It overrides the form's action for this button only. | MDN |
formmethod | get, post or dialog. Overrides the form's method for this button only. | MDN |
formenctype | How the data is encoded for a POST, such as multipart/form-data. Overrides the form's enctype. | MDN |
formnovalidate | Boolean. Skips the browser's required, pattern and other checks when this button submits the form. | MDN |
formtarget | Where the response opens, such as _blank. Overrides the form's target. | MDN |
name / value | The pair sent for the clicked button only, like intent=draft. Without a name, the button sends nothing. | MDN |




