Hi guys,
I’m in need of information on how I can make it so that when a date is selected, a button can take you to a URL that is different for each date. For example booking tickets, when a date is selected it lets you go to a website for booking on that specific date. Any ideas on how I can do this?
Hi! You can use the Wix Code function “onItemClick” to trigger an action when an item in a dynamic page is clicked. You can then use the “navigate” function to redirect the user to a new page. You can Create a dynamic page with a repeater that displays a list of dates. Add a button to the repeater item and give it an “onClick” trigger. In the “onClick” trigger function, use the “getCurrentItem” function to get the data for the clicked item. Use an “if” statement to check the value of the “date” field for the clicked item. If the “date” field matches a certain value, use the “navigate” function to redirect the user to the appropriate URL.