react icon indicating copy to clipboard operation
react copied to clipboard

Wierd custom onSubmit behavior

Open gogolander opened this issue 1 year ago • 1 comments

Hi, My react app sends formio forms to camunda bpe. I’m having a bit of an odd issue using @formio/react: sometimes it doesn’t call the provided onSubmit handler. That seams to happen in two cases: 1. when I set the form submission; 2. when I have subForms in the form. When the anomaly happens, I see a POST request that tries to persist the submission to the apiBaseUrl (and fails, obviously, because there’s no backend there).

Could someone help me understand what triggers the “default” submission as opposed to the custom one? I think that is the use case for the nosubmit=true option of the formio.js but I think it is not present as an option for the Form component.

thanks

gogolander avatar May 07 '24 16:05 gogolander

To better help you with your issue could you please provide the form json for both of your cases? I am also unsure what you mean by "Could someone help me understand what triggers the “default” submission as opposed to the custom one?" What do you mean by custom one?

ZenMasterJacob20011 avatar Sep 11 '24 13:09 ZenMasterJacob20011