react icon indicating copy to clipboard operation
react copied to clipboard

Wierd custom onSubmit behavior

Open gogolander opened this issue 9 months 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