I want to display data in a table from a dataset based on user input and give a message if no data exists for the given input

( THIS WEBSITE IS BEING MADE TO HELP THE SITUATION OF COVID IN INDIA, ANY HELP IS WELCOME )

For Example, if I enter some number "X"in the " V erify a Number" input box, I want the table to show the columns - Name , Services , Was It Useless and Experience with data stored in a dataset; with the number X equal to the number that is already in the " Add a Number " database and show a message if the number does not exist yet. But, the code does not seem to be working. I just keep getting “No entries found” in the log in spite of entering a number that exists in the database. I’m attaching the relevant photos and the code below

import wixData from “wix-data” ;

$w . onReady ( function () {
});

export function VerifyButton_click ( event ) {
$w ( “#ResultTable” ). expand ();

wixData . query ( “medicalQuestionnaire” )
. eq ( “dateOfBirth” , $w ( “#VerifyInput” ). value )
. find () // Run the query
. then ( ResultTable => {
if ( ResultTable . items . length > 0 ) {
let items = ResultTable . items ; console . log ( items )
}
else { console . log ( “No entries found” )
}});
}

Please feel free to ask any follow-up questions!:grinning:

- Prabhav Pandey (18)