Is there a way to perform different submit handlers based on a <button type="submit" name="..."> ? #886
-
Or should I have a form field value for the submit button to be able to track it |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
It is currently not supported but it's something we can integrate to the library. What is your usecase and what kind of API would you like to see? |
Beta Was this translation helpful? Give feedback.
-
According to the MDN docs for the In such case, i'm guessing that it could be handled with the existing TanStack Form API by adding an optional value for that button, but then we are just missing a way to execute A higher level idea could be to add an optional I'll keep thinking a bit but I'm open to back-and-forth API discussions here! |
Beta Was this translation helpful? Give feedback.
-
Linked issue #890 |
Beta Was this translation helpful? Give feedback.
#890 (comment)