Regression in 4.0.0: submit button name/value not sent
Author: azmeukCreated Sep 14, 2026Updated Sep 16, 2026
A named `` carrying its own `hx-post` inside a `` doesn't send its own `name`/`value` in 4.0.0. No console warning, no error, the parameter just never reaches the server, so the symptom is "the button does nothing" in an app that worked under htmx 2.
This is what #1506 reported on 1.x. It was fixed by #1559 and shipped in 1.9.4. I get the button value on 1.9.4, 1.9.12 and 2.0.10, and I don't on 4.0.0-beta3, 4.0.0-beta4 or 4.0.0. alpha1 and beta1 aren't on the CDN anymore, so beta3 is as far back as I could check.
The docs still say, under Forms - Input Values: "By default, an element that causes a request will include its `value` if it has one."
Repro, no server needed, it intercepts the request and prints the body htmx built:
```html
click me
click the button``` On 4.0.0 that prints `txt=hello`. On 1.9.4 through 2.0.10 it prints `txt=hello` and `btn=B`. Two variations in case they help narrow it down: removing the `` wrapper makes 4.0.0 include `btn=B`, and adding `hx-include="closest form"` to the button changes nothing. #1506 reported the same about `hx-include`.
Source: bigskysoftware/htmx