Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wierd custom onSubmit behavior #565

Open
gogolander opened this issue May 7, 2024 · 1 comment
Open

Wierd custom onSubmit behavior #565

gogolander opened this issue May 7, 2024 · 1 comment

Comments

@gogolander
Copy link

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

@ZenMasterJacob20011
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants