Hi Roy,
I reloaded the code with your example …
$w.onReady(() => { $w('#dataset1').setFieldValue('title', $w('#text11')); });
Message:
DatasetError: The dataset didn’t load yet. You need to call setFieldValue inside the onReady for the dataset.
I changed the code I do not know how to program in JS !!!
$w.onReady( function() {
$w('#dataset1').setFieldValue('title', $w('#text11'));
});
Same Message:
DatasetError: The dataset didn’t load yet. You need to call setFieldValue inside the onReady for the dataset.
I have remodified the code … It’s OK but the result in the database is not good
$w.onReady( () =>{
$w("#dataset1").onReady(() => {
$w('#dataset1').setFieldValue('title', $w('#text11'));
});
});
[object Object] ??? how to replace that by the good value ?
Pierre
