I am really struggling to get off the ground
I wrote some code all in an $w.onReady(function () {}
Initialised all, everything else works except the query. the value of text box #inputText2 remains “outcome” as initialised
wixData.query(“Registration2018”)
.then( (results) => {
let item = results.items; //puts results in item
$w(“#inputText2”).text = " Success";
} )
.catch( (err) => {
$w(“#inputText2”).text = " Fail";
} );
I tried
wixData.query(“Registration2018”)
.find()
.then( (results) => {
This at least set #inputText2 to fail (some progress!)
Clearly falling at the first but cannot see where I am going wrong