How to create a search filter for Real Estate website?
Hi,
Welcome to WixCode. Glad to have you aboard.
You can get started with database filtering by looking at these docs:
-
wix-data API
After you’ve had a chance to play with the WixCode database system, visit us again here in the forums with your questions.
Have fun,
Yisrael
Actually i want made a multiple dropdown filter.But i only run one only. Is there any way to run the second dropdown?
Take a look at the post Let users filter data in a table for a discussion regarding more complex filters.
You can use multiple dropdowns in a filter like this:
export function filterButton_onClick() {
$w("#dataset1").setFilter(wixData.filter()
.contains("type", $w("#selection1").value)
.contains("title", $w("#selection2").value)
);
})
In the above example, #selection1 and #selection2 are the two dropdown menus. Together they will filter the query.
Look at the wix-data.filter API for more information.
Good luck,
Yisrael