hi! hello i am new to wix and with programming and i am indonesian the language are soo much different :-( so i hope you guys can help me :-)
okay here i have a code
// For full API documentation, including code examples, visit http://wix.to/94BuAAs import wixData from 'wix-data'; $w.onReady(function () { //TODO: write your page related code here... wixData.query('gameStore') .eq('title', $w('#dropdown1').value) .find() .then(res => { let items = res.items[0]; let price = items.price; $w("#text15").text = price; }) }); i just wanna show price field from the queried item, the code looks nice but i don't know why it just leave a blank text.
i am trying to be nice, and sorry, please help.
Regards, Ukaz
You should have:
let item = res.items[0]; console.log(item); let price = item.price; $w("#text15").text = price;
As you can see in the above code, I added a console.log() statement so that you can inspect the contents of the item.