Forms submit each time I click anything, how to stop?

All my forms submit each time I click something and I am stuck on how to stop it.

I click to type in some feedback, it sends an empty form. I click to delete a word, its submits a half finished form. I click submit, it sends the completed form.
(referencing the image)
1, when I clicked to start typing
2, is unfinished form when I right clicked on a word to change the spelling
3, submitted completed form.
why

The same thing happens on my signup form too.

How do I stop this?

You probably have a workflow on click on the form container that causes this. The proper way would be to use the Form Container with a Button of type Submit inside of it.

submitbutton

its set to a submit button. I only have the option for an “on click” no “on submit” like the tutorials show.

You need to use the “Form container” element, it should be called something like that. And then you should place the button inside of it. The form container has an On submit action.

@Broberto I will not forget you when i sell my app for a gazillion dollars :joy:

Thank you. I will now go and change all the forms I did wrong.

1 Like

I hope you won’t indeed haha! I did the same mistake when I was starting, no worries :slight_smile:

1 Like

Just curious, does using a form container just make validation easier in WeWeb, or does it play some sort of bigger html role?

Kinda both, it’s a <form></form> container, meaning that it behaves like a form (an HTML specific thing) that’s why it also validates the fields automatically etc. Might be good for accessibility and ease of doing forms / other form-specific cases.

1 Like