Hello,
I am new to Wix code and have dabbled in other forms of code in the past. I am trying to display data from a collection in a text box. The code I have is below:
wixData.query(“Pricing”)
.eq(“postcode”, session.getItem(‘postcode’))
.find()
.then( (results) => {
let Item = results.items[0]; //see item below
console.log(Item)
$w(‘#text60’).text = Item
} )
. catch ( (err) => {
let errorMsg = err;
} );
Error for this code is below
If anyone could help that would be awesome. Been stuck on this for some time.