1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 13:24:03 +00:00
laravel-tips/content/tips/you-can-use-the-formanother-form-attribute-on-buttons-to-submit-a-different-form.md
2021-11-19 16:10:01 +01:00

660 B

title tweet_id thread_slug author_username images created_at slug
You can use the form="another-form" attribute on buttons to submit a different form 1461703831960440837 weekly-thread-2021-46 doekenorg
https://pbs.twimg.com/media/FEZQ4UOXEAo2mlv.jpg
2021-11-19T14:32:05+00:00 you-can-use-the-formanother-form-attribute-on-buttons-to-submit-a-different-form

🔥 I sometimes forget you can use form="form-name" on input types to hook fields inside one form to another. This makes it as if those fields were inside that <form>-tag.

This is super useful if the fields are rendered in the wrong form, but UI wise it makes sense.