Dependent dropdown

I’ve read many posts on this, but they all seem to be over-complicated and multi-faceted where the code becomes hard to follow for a newbie.

I have Suppliers and the Materials they supply.

dropdown1 is the Supplier and dropdown2 is the MaterialName . They are both pulled from a dataset called Materials where there is a Supplier field and a Material field. The dataset is populated with the relevant Materials that the corresponding Supplier supplies.

Once I select the Supplier from dropdown1 , I would like dropdown2 to reflect only those Materials supplied by that Supplier.

I was hoping to do this as a filter without having to code, but hopefully the coding side isn’t too intense.

Many thanks

Wix already have a perfectly fine tutorial for this in their Examples page for this forum.
https://www.wix.com/corvid/example/cascading-form

You can open it up in your own Wix Editor and view the page already setup along with all the code added to the page already too.

You will just need to design your own page as you want it and then copy the code across to your own page and edit it to suit your own settings etc.

Nayeli (Code Queen) has also done her own tutorial and youtube video about this.
https://codequeen.wixsite.com/dropdown
https://www.youtube.com/watch?v=EhXed0u6wh0

Also, here is a previous forum post about that same Wix tutorial above.
https://www.wix.com/corvid/forum/community-discussion/dependant-dropdowns

Finally, here is a way of doing it without code.
https://www.wix.com/corvid/forum/community-discussion/dependent-drop-down-lists