Duplicate and blank entries on data

Mixing wixData functions with dataset functions is more trouble than it’s worth usually. You should settle on one approach or the other.

The wixData.save code, since you are not passing the _id value, will always create a new record. The submit button is creating a record too if tied to the dataset.

Using dataset functions, you could do something like this in place of the wixData.save code:

 $w("#dataset2").setFieldValues(toSave);
 $w("#dataset2").save();

You will have to refine this no doubt, but you should be beyond the duplicate/blank problem.

I hope this helps.