$w.onReady( () => {
$w(“#myDataset”).onReady( () => {
$w(“#myDataset”).new()
.then( ( ) => {
console.log(“New item created”);
} )
.catch( (err) => {
let errMsg = err;
} );
} );
} );
$w.onReady( () => {
$w(“#myDataset”).onReady( () => {
$w(“#myDataset”).new()
.then( ( ) => {
console.log(“New item created”);
} )
.catch( (err) => {
let errMsg = err;
} );
} );
} );
ID wrong? It looks correct to me
You incorrectly have your page onReady() function inside of another function.
Okay, i try again. thanks