formsy-react icon indicating copy to clipboard operation
formsy-react copied to clipboard

Feature Request: Add method to programically submit form in withFormsy hoc

Open th3fallen opened this issue 6 years ago • 4 comments

Title pretty much says it all

th3fallen avatar Aug 26 '19 14:08 th3fallen

Would also like this. Use case is embedding a form within a modal dialog component that has the "OK" and "Cancel" buttons as part of the boilerplate markup. I'd like the dialog "OK" button to submit the form.

broofa avatar Feb 19 '20 02:02 broofa

It's possible https://github.com/christianalfoni/formsy-react/issues/45

fernandotholl avatar Mar 02 '21 19:03 fernandotholl

Then this is a documentation problem, and should still be a PR.

rkuykendall avatar Mar 10 '21 14:03 rkuykendall

This is the function mentioned https://github.com/christianalfoni/formsy-react/issues/45#issuecomment-97426023

It would be a very easy first PR to: 1) Create a test to make sure this functionality is not broken in the future, 2) Add it to the documentation.

But in the meantime, this at least solves @broofa's issue.

rkuykendall avatar Mar 10 '21 14:03 rkuykendall