jquense / react-formal

Sophisticated HTML form management for React
http://jquense.github.io/react-formal
MIT License
526 stars 52 forks source link

Force validation or allow multiple submits #119

Closed alburritos closed 7 years ago

alburritos commented 7 years ago

Hi,

I have a form that I want to hook up two different submit buttons to. I'm trying to use the Form component to utilize validation. I see two possible work-arounds:

  1. Force validation when I click either of the two buttons, or
  2. Have two submits buttons, or essentially, two diff submit props in Form.

Are either of these possible?