Linking Dataset to Drop Down

Please see attached images.

I have a made a dataset with 3 titles, type, brand and link.

Within “type”, there are two types, Square Edge and Tapered Edge.

I am trying to get the drop down menu to only show one of Square Edge or Tapered Edge depending which you select.

I have named the types exactly as they appear in the dataset, linked the dataset to the drop down, but nothing happens when you select Square Edge or Tapered Edge on preview or the published site.

What have I done wrong please? Thank you so much!

Hello. This community forum is for finding help with issues related to coding in Velo. If you have followed all of the steps here and have not been able to get this working, please reach out to customer care .

Hi amanda, I’ve tried to find an email address for customer care but all I can find are help pages where my issue isn’t listed?

At the moment, you’re just populating that dropdown with values, but nothing is being done with those values when the dropdown changes.

You’ll need to use the dropdown onChange event handler to run a filter that filters the table.

It might look something like this:

$w("#dropdownId").onChange(() => {
        let searchValue = $w("#dropdownId").value
        $w("#myDataset").setFilter(wixData.filter()
            .eq("fieldID", searchValue)
        );
    })

These are the API’s you’ll need:

Hi, customer care link does not work I’m afraid, just loads the bot but cannot speak to it

I am sorry you are experiencing issues with the bot, I just tested it and it is working on my end. Perhaps try again later or check out this post and see if there are any other methods for reporting that will work for you.

How to report a bug

Hi Noah, thank you for this. I’m afraid I’m an electrician with zero coding experience. I have changed the drop down menu into Velo developer by Wix and added the field id manually to both Tapered Edge and Squared Edge, but it still doesn’t filter the content.

is there anyway to do this without coding?

On the dataset, (the thing you’ve connected the table and dropdown to), there is the option to filter. When you choose that, you should be able to choose to filter by the dropdown value. If not, my details should be in my forum profile. Reach out to me and I’ll see what I can do for you :facepunch:

Thank you, but that only seems to filter the content for me where as I would like my users to be able to filter the content by their specificities. I can’t see your details on your profile unfortunately?

Head to - https://www.2by2websites.com/contact and complete the form.