top of page

Dropdown Filters in Wix

  • May 10, 2024
  • 1 min read

Updated: Dec 30, 2024



Velo Code:


import wixData from 'wix-data';


export function searchButton_click(event) {
    search();
}

function search() {
	wixData.query("Properties")
        .contains("propertieType", String($w("#dropdown1").value))
        .and(wixData.query("Properties").contains("listingType", String($w("#dropdown2").value)))

        .find()
        .then(results => {
            $w("#propertiesRepeater").data = results.items;
            $w('#searchButton').hide();
            $w('#resetButton').show();
            $w('#resetButton').enable();
        });
}

export function resetButton_click(event) {
    $w('#propertiesDataset').setFilter(wixData.filter());
    $w('#dropdown1').value = undefined;
    $w('#dropdown2').value = undefined;
    $w('#resetButton').hide();
    $w('#searchButton').show();
}

Enjoy!

3 Comments


Lifehata
4 days ago

На цьому інтернет-ресурсі є публікації для читачів, яким важлива проста і зрозуміла подача інформації. Тематика охоплює чимало життєвих ситуацій, тому матеріали можуть бути корисними в різний час. Частину статей варто залишати в закладках, щоб швидко знайти їх повторно.

Like

Infosaray
4 days ago

Якщо потрібен сайт для регулярного читання без прив’язки до однієї сфери, підійде https://infosaray.com.ua. Тут є публікації про здоров’я і красу, сімейне життя, дім, технології, фінансові питання та відпочинок.

Like

gvv34233
Aug 14

Platelet-rich plasma (PRP) therapy for hair regrowth is actually quite an interesting area because it focuses on stimulating natural healing processes rather than introducing external chemicals. The randomized placebo-controlled trials generally show mixed but somewhat promising results, especially in early-stage hair thinning, where follicle activity can still be revived. However, outcomes depend heavily on individual biology and treatment consistency. I’ve even seen unrelated community discussions, like those around fairspin casino, where users unexpectedly compare “trial and outcome” thinking patterns across very different fields, which is kind of a funny crossover.

Like
bottom of page