PLAY PODCASTS
How to identify which button submits a form
Season 2 · Episode 18

How to identify which button submits a form

Christian asked this on 2022-07-15

The Call Kent Podcast

July 18, 20223m 30s

Audio is streamed directly from the publisher (media.transistor.fm) as published in their RSS feed. Play Podcasts does not host this file. Rights-holders can request removal through the copyright & takedown page.

Show Notes

Which is the best way to know inside of an action function in Remix with which button a form was submitted

In this example the name is "action", but again I prefer to call this "intent": https://github.com/remix-run/remix/blob/d0d500849fbd87eace23bb3d479b7c556e314109/examples/multiple-forms/app/routes/invitations.tsx#L70-L75

How to identify which button submits a form

Topics

remixactionssubmit