# Building Progressively Enhanced Forms with htmx

Original title: Building progressively enhanced forms using Htmx

> Hacker News story 49116252 · language: en · submitted 2026-07-30
> Web version: https://zeli.app/story/49116252
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 91 · by [mpweiher](<https://news.ycombinator.com/user?id=mpweiher>) · 💬 13
[original](<https://www.rafa.ee/articles/progressive-enhanced-forms-htmx/>) · [HN discussion](<https://news.ycombinator.com/item?id=49116252>)

## Summary

Rafa shares his approach to building a bookmark editing form for ties.pub using progressive enhancement. He starts with a no-JS version, then layers htmx for interactivity like live search. The post covers managing transient state with form values and query parameters, detecting which button was pressed, and the importance of scoping htmx swaps. He also recommends resources for learning more about server-rendered HTML and htmx.

## Key quote

> It usually surprises me how little htmx is really needed when I follow this approach.

## HN discussion (13 comments)

### [yawaramin](<https://news.ycombinator.com/item?id=49202190>)

> \> Fiddling with out-of-band swaps to solve this feels error prone and overly hard to maintain.
>
> This is almost always because of using a string-based templating system. If you use a language-embedded HTML generation library, it represents HTML fragments as first-class values in your language, and you can compose them together in flexible ways. This makes out-of-band swaps very simple.

### [arthurcolle](<https://news.ycombinator.com/item?id=49200360>)

> Video doesn't seem to be rendering, has 0:00 and 0:00 as start and end times

---

## Cite

- Page: https://zeli.app/story/49116252
- Date: 2026-07-30
- Source: rafa.ee (https://www.rafa.ee/articles/progressive-enhanced-forms-htmx/)
- Hacker News: https://news.ycombinator.com/item?id=49116252

## Other languages

- zh: https://zeli.app/zh/story/49116252 · markdown: https://zeli.app/zh/story/49116252.md
- ja: https://zeli.app/ja/story/49116252 · markdown: https://zeli.app/ja/story/49116252.md
- ko: https://zeli.app/ko/story/49116252 · markdown: https://zeli.app/ko/story/49116252.md
- de: https://zeli.app/de/story/49116252 · markdown: https://zeli.app/de/story/49116252.md
- es: https://zeli.app/es/story/49116252 · markdown: https://zeli.app/es/story/49116252.md
