I would like to look up member based on their mainPhone number in a Dashboard page
Tried this query
MemberResult = await wixData.query("Members/PrivateMembersData") .eq("mainPhone",$w('#PhoneNumerInput').value) .find() .catch(Error =>{ console.log(Error); ErrorFlag = true; $w('#ErrorText').text = "Sorry, Phone number is not found "; $w('#SearchingText').show(); $w('#SearchingText').expand(); return; });
But I get this error
internal_error, details: {\"error\":\"No value found for 'mainphone'\"}","details":{"category":"internal_error","error":"No value found for 'mainphone'
How can I look up the member using their phone number
Still having problems?