Hello Community,
I am new to WIX and this is my first time designing any website anywhere. I have done a bit of coding in my high school but did not pursue it further, I am currently trying to design a website on WIX and I am stuck with a few things.
So, my homepage has these two drop downs with different options, one has a list of CAUSES (animals, kids, education, LGBTQ rights) and the other has CITIES (Boston, New Delhi, New York) and a button below to proceed. I have already created a database where I am taking entries of events, and each entry has the CAUSE and CITY listed in it.
What I want is when the user selects his CAUSE and CITY and clicks on the BUTTON, he should be redirected to a page where all the events that match the CAUSE and CITY selected by the user, is filtered from the database and displayed on a REPEATER (image below).
Query 2: In the above REPEATER, once the user clicks "KNOW MORE", a new page should open displaying extended details of the event. I have created a dynamic page and connected all the fields to the database, so my dynamic pages are working fine. My query is how to link those pages to the KNOW MORE button on each block of the REPEATER so that they open the dynamic page of the event clicked on?
I would be thankful if the community can help me solve these problem. Thanking all of you in advance, and looking forward to more exploration and developments in the WIX community.
Regards and Love,
Neelabh
@Neelabh Srivastava Assuming your repeater is displaying the correct event information then the simple answer is that you should be able to connect the Know More Button to the Dynamic Page you have created using the link option. There shouldn't be a need to use Wix Code.
https://support.wix.com/en/article/wix-code-about-linking-to-a-dynamic-page
NOTE: Because the button on a repeater has the context of the item in a dataset when it is clicked it automatically sends the correct item from the data collection to the dynamic page.
Cheers
Steve
Hey
First of all when someone selects the dropdowns and clicks your button you need to filter the repeater below using the setFilter method on the repeaters dataset. So place the repeater on the same page as the dropdowns if you want and just read about the setFilter in the API Reference under Resources on this page. You will find sample code to use.
The second question is easier, just click the button in the repeater on ITEM 1 and set the action to go to the dynamic page that the repater is connected to. Voilà.
If you need any more help, just ask. Good luck with your very good initiative