top of page

Forum Posts

Zeba Rees
Apr 29, 2021
In Coding with Velo
Hi, I am trying to load data based on the querystring. Below is the code I have but its not working. // API Reference: https://www.wix.com/velo/reference/api-overview/introduction // “Hello, World!” Example: https://learn-code.wix.com/en/article/1-hello-world import wixLocation from 'wix-location'; import wixData from 'wix-data'; $w.onReady(function () { let queryUser = wixLocation.query['user']; wixData.query("Wedding_Inquiry") --this is the name of the database hooked with the form .eq('Email',queryUser) .find() .then((results)=>{ console.log(JSON.stringify(results)); --i cannot see any results in the console window //let item = results.items[0]; //console.log(item); //$w('#userName').value = item.Email; --when i enable this line, i cannot see anything populated }) .catch((err)=>{console.log(err)}); }); Need helps pls :) Thanks, Zeba
0
1
18

Zeba Rees

More actions
bottom of page