Today i connected one dropdown lists to a collection, that worked. then i tried to connect second dropdown list to another collection. I found that couldn’t work.
Are there any way i can use multiple collection in one page ?
Hi Jack,
Yup you can do it, If you have two data-set on your stage then you can connect each one of the drop-down values to different data-set.
If its not working please explain / send example of what exactly is not working and will able to look on it.
10x, Erez
Hi Enez, Thank you for respond. follow your recommend i try to creat two datasets, but it is not allowed. After i finish first dataset, i can not create second dataset to another database. The following is my website.
https://laizhihong88.wixsite.com/mysite/find-tutor
it is not working for two database.
i have two databases, want to link to two dropdown list.
In one page-Find Tutor i can create a dataset and link to a dropdown list and it works in Prewiew (but not work in Publish.)
What is the meaning "your stage ", that means one page?
Hope you can see this soon.
Hi Jack,
What you need to do is the following:
- Create 2nd data-set on your page (Yes your page is your stage
Below is pictures with step by step.
- Then connect the collection to you Dropdown Values (Currently you connect it to the value)
To do it following the below step by step
3. The same do to the second drop down.
4. The you need to FILTER your main collection with the value that the user will select onChange event.
5. You see it working in the preview and not in the live cause you didn’t sync your collection. To do it follow the following steps (The same do for all your collections):
In general will recommend you to see the following video for understanding how to perform your filtering collection with dropdown.
Enjoy, Erez
Thank you for your explain that is so clear and so easy to understand. I make two dropdown list working now in Publish also.
actutally i want to first dropdown list showing the subjec that include Apple, MicroSoft and Photoshop. and second dropdown list showing the relatived courses, so i have another database named Course below.
As user click first dropdown list. to choose apple, then second dropdown list showing apple courses, As user click first dropdown list. to choose MicroSoft, then second dropdown list showing MicroSoft courses, As user click first dropdown list. to choose photoshop, then second dropdown list showing photoshop courses, how to do that ? what relative knowledge i have to know ?
Yes i will watch the video that you gave. Thank you a lot.
- you need to add an object that present the courses on your page and link it (Like list or repeater).
- Then look at the movie and check how to implement the setFilter function (Or go to document attached: wix-dataset - Velo API Reference - Wix.com) and trigger this from the onChange event of each one of your drop downs with the below instruction.
Its will be much easier to follow step by step a lot of example in youtube (Like the one I sent you) and then you will have all / most knowledge needed in order to do this and other changes you will want.