#Formaction
How Does React Implement an Uncontrolled Form Field?

By allowing the DOM to maintain the field’s current value instead of controlling it with React state.

To access uncontrolled form values, use tools like:

- useRef
- FormData
- action prop
- formAction prop

amazon.com/dp/B0FRC4R8T3

#webdev #js
September 8, 2026 at 2:44 PM
A form that still works with JavaScript disabled isn't a nice-to-have, it's what the form attribute and formaction were built for. go.upgradejs.com/6eg #Accessibility #Rails
August 27, 2026 at 1:59 PM
1. Replace <code>useState</code> with <code>useActionState</code>

2. Move state update function into <code>useActionState</code>

3. Replace <code>onClick</code> with <code>formAction</code>

4. Wrap it up in a <code>form</code> element

5. By convention, we call handler a <code>formAction</code>
✅
November 15, 2024 at 8:45 PM
Next.js 15 will be able to use JavaScript in component level!
October 30, 2023 at 2:50 AM
The number of people still finding out about

`form`
`formmethod`
`formaction`

tells me more people should revisit the MDN docs on elements they use daily, myself included.
March 21, 2025 at 2:33 PM
Here's a quick HTML party trick. Do you know that you can overwrite a form's behavior with a button?

You're welcome. 😅

www.stefanjudis.com/today-i-lear...
February 4, 2026 at 6:09 PM
This week's Web Weekly is about to hit all the inboxes in just a little bit! As always, it's jam-packed with baseline updates and new web dev features. 🎉

webweekly.email/archive/web-...

If you're into web dev news close to the platform, you should check it out!
February 2, 2026 at 5:48 PM
i had the handler in js (because it's a static deployment calling a php backend) but I just make an abstraction that knows which backend route to hit depending on the formaction. (also thank you enhance, you are a blessing)
November 13, 2025 at 7:17 PM
but for tables, I prefer to wrap the whole table in a form then use formaction on each of my buttons

name=delete
formaction=?delete
value=X

etc
November 13, 2025 at 4:53 PM
Maybe links styled to look like buttons could be actual buttons by using the formaction attribute. Would make them buttons for screen readers and everybody, not just visually. Maybe good/bad for bots, maybe links need to be links still? Here's a codepen to try it out. codepen.io/sakamies/pen...
What if button links were actual buttons?
...
codepen.io
November 13, 2024 at 7:43 PM
Regard sur une formation / formaction. Développer la robustesse d'une association solide, afin de permettre une passation fluide, ancrée dans ses valeurs et la pérennité de l'action. #sociocratie #consentement #gouvernancedynamique #centrefrançaisdesociocratie #coachingdequipe
July 2, 2025 at 3:03 PM
これ結構難しい。useActionStateで作ったhandlerは自動でtransitionするわけじゃなくて、
formActionに渡したときに自動的transitionするという挙動になってる気がする。 「非同期トランジションを使用する関数を規約として「アクション」と呼ぶ 」 "React 19 RC – React" https://ja.react.dev/blog/2024/04/25/react-19
November 17, 2024 at 2:28 AM
useActionStateでformActionが失敗した場合の挙動って未定義?
なんかevent.preventして手動で送ったのとはまた違う感じの挙動をしてる "useActionState – React" https://react.dev/reference/react/useActionState
October 20, 2024 at 7:56 AM
<modal> is a big one. Also form, formmethod, formaction and formtarget on <button> so much js has been written to make button do what these attributes achieve natively
March 14, 2025 at 8:09 PM
<a href="https://azukiazusa.dev/blog/why-use-server-actions" class="hover:underline text-blue-600 dark:text-sky-400 no-card-link" target="_blank" rel="noopener" data-link="bsky">azukiazusa.dev/blog...
なぜ Server Actions を使うのか
なぜ Server Actions を使うのか
Next.js 14 の Server Actions の stable リリースに発表は大きな反響を呼びました。特に `<button>` の `formAction` 属性内で直接 SQL クエリを実行するコードは多くの人に衝撃を与えていました。Server Actions の是非について語る時、導入の背景にユーザー体験の向上があるという観点を忘れてはいけません。また、セキュリティ上の観点についてどのように考えるべきでしょうか?
azukiazusa.dev
November 12, 2023 at 1:27 PM
CVE-2026-45753 - Symfony: HtmlSanitizer UrlAttributeSanitizer Omits action/formaction/poster/cite — javascript: URI Survives Sanitization (XSS)
CVE ID : CVE-2026-45753

Published : July 14, 2026, 7:17 p.m. | 13 minutes ago

Description : Symfony is a PHP framework for web ...
CVE-2026-45753 - Symfony: HtmlSanitizer UrlAttributeSanitizer Omits action/formaction/poster/cite — javascript: URI Survives Sanitization (XSS)
Symfony is a PHP framework for web and console applications and a set of reusable PHP components. From 6.1.0-BETA1 until 6.4.40, 7.4.12, and 8.0.12, UrlAttributeSanitizer::getSupportedAttributes() omits URL-valued attributes including action, formaction, poster, and cite, so configurations that admit those attributes can leave javascript: URIs unsanitized and enable XSS when the …
cvefeed.io
July 14, 2026 at 8:04 PM
CVE-2026-53606 - sanitize-html has an incomplete URI scheme validation that allows javascript: URIs through action, formaction, data, poster, and background attributes
CVE ID : CVE-2026-53606

Published : June 12, 2026, 8:50 p.m. | 33 minutes ago

Description : ApostropheC...
CVE-2026-53606 - sanitize-html has an incomplete URI scheme validation that allows javascript: URIs through action, formaction, data, poster, and background attributes
ApostropheCMS is an open-source Node.js content management system, and sanitize-html provides a simple HTML sanitizer with a clear API. Versions of sanitize-html prior to 2.17.5 use `allowedSchemesAppliedToAttributes` (default: `['href', 'src', 'cite']`) to gate the `naughtyHref()` function that blocks dangerous URI schemes like `javascript:` and `vbscript:`. The HTML specification defines 10+ …
cvefeed.io
June 12, 2026 at 10:19 PM
It's not as nice as `<form action>` or `formAction`, but this works with server functions for me
August 21, 2025 at 5:39 PM
Oh, apparently every form gets its own transition

> Server Functions passed to <form action> or formAction will automatically be called in a transition
'use server' directive – React
The library for web and native user interfaces
react.dev
August 21, 2025 at 5:10 PM
button elements offer attributes to change form behavior: "Use formaction, formenctype, formmethod and formnovalidate to change form configuration with button attributes" #HTML www.stefanjudis.com/today-i-lear...
button elements offer attributes to change form behavior
Use formaction, formenctype, formmethod and formnovalidate to change form configuration with button attributes
www.stefanjudis.com
February 12, 2026 at 6:02 PM
In this case, it's simpler to just move everything to the event.
But I'm working on an app where I need to change a state after a formAction, and it would be really helpful if I could do this:
September 27, 2025 at 7:10 PM
📦 fromholdio/silverstripe-formaction-link 1.1.1

A type of FormAction that renders as a link/anchor rather than button or input.

🔗 https://github.com/fromholdio/silverstripe-formaction-link
October 20, 2025 at 10:11 PM
📦 fromholdio/silverstripe-formaction-link 1.1.0

A type of FormAction that renders as a link/anchor rather than button or input.

🔗 https://github.com/fromholdio/silverstripe-formaction-link
September 20, 2025 at 3:58 PM
💻Pour réfléchir ensemble à nos pratiques d’évaluation permettent et à leur sens pour les élèves, direction notre form@ction n°27 :

📆15 avril, de 17h30 à 19h
📌en ligne
🗣️grande-témoin : Lucie Mottier-Lopez

#évaluation #apprentissages #formactions #coformation

➡️ www.helloasso.com/associations...
Formaction 27 : Evaluer les apprentissages
Formation organisé·e par CRAP Cahiers Pédagogiques - Cette séance est la troisième et dernière du cycle "Enseignement" sur le thème "Donner du sens aux apprentissages". Elle portera sur l'évaluation des apprentissages pour que l'élève leur donne du sens.
www.helloasso.com
April 9, 2026 at 3:52 PM