How to not clear a form when submit is clicked?

Hello,

I am trying to create in online calculator with Wix Code.
The user needs to fill out a form and when the calculate button is clicked, the user input gets send to a Wix DB und the user is presented with the result of the calculation on the same page.

So far everything is working, but I don’t like one little detail:
Since I stay on the same page (intentional) when the form is submitted and the calculation is done, the form gets reset. this is caused by the default wix behaviour when you link a form to a DB. Is there anyway to supress this?
In other words, I want the calculate button to submit all data to my wix DB but NOT to reset the form.

Thanks in advance!

PUSH

Hi,
Disconnect the input field and the submit button from the dataset and use insert method.
That will keep to values in their place.
Good luck!
Roi.

This works, but then i loose a lot of functionality, like the form marking fields that are missing input or have wrong input.

You need to add al by code.
Roi.