Dropdown/Search Box/Price Range/Search Button HELP!!

I am building a website for a real estate company. The requested search features are as follows : Listing Type, Property Type, Price Range (from-to) and Location (town,county,state, zip code).

I first created a search bar where the user can type in the location they’re interested in. That works perfectly.

I then created several dropdowns - Listing Type, Property Type and Price (from) and Price (to). I added a button to search when one or more Dropdowns are selected. I can’t seem to get the dropdowns to search and filter. I’ve checked the code and my fieldTypes and everything seems to be right. What in the world am I doing wrong?

Also, I’d like to add a Reset button so the dropdowns can all be reset and all listings reappear in the Repeater. If anyone can help me with that code as well, I’d be over the moon.

Thank you!!

This is my code:

import wixData from ‘wix-data’;
$w.onReady( function () {
//TODO: write your page related code here…
export function input1_keyPress(event, $w) {
let searchValue = $w(“#input1”).value;
$w.onReady( function () {
export function button2_click(event, $w) {
//Add your code for this event here:
.contains(“listingType”, $w(‘#dropdown3’).value)
.contains(“propertyType”, $w(‘#dropdown4’).value)
.between(“price”,parseFloat($w(‘#dropdown1’).value), parseFloat($w(‘#dropdown2’).value)))
.then((results) => {
console.log(“Dataset is now filtered”);
$w(“#repeater1”).data = results.items;
}). catch ((err) => {

Screenshot of page and database:

That sounds like an interesting project! Do you get any error message in the console? I sometimes use datasets but I have found it easier to get objects straight from wix-data using code for more complex operations.

I got rid of all the datasets and used wix-code for a recent project, an expanding menu on my website www.michielkroon.com. it also works with databases and repeaters.

Stella, did you find the solution? I want the same functionality on my site

I also am intrigued to see if you found a solution to this?