Hey
If you make a page with a form and then add a dataset to that page, connecting all fields to the dataset. Then you want all users that come to that page to have a new record from the data collection.
Is is so that you will need to use the below code to make a new clear form, otherwise it will be prefilled with the last entry in the data collection?
$w("#datasetname").new()
.then( () => {
console.log("Created a new item in db now");
let item = $w("#entryDataset").getCurrentItem();
console.log("Created item: " + item._id);
} )
.catch( (err) => {
let errMsg = err;
console.log("new error " + errMsg);
} );
It should be possible to set a dataset not using code to always use a new empty record?