Question:
Hey I’m new to wix studio and made an events page for my website, I’m sorting elements so that the next ones are displayed first, but this also puts the passed events at the top, so is there a way to automatically delete these elements like 3 days after please?
Product:
Wix studio (I think)
You can’t delete physical elements from a page via code.
I think you might mean display data that has not expired, from a repeater? Or a gallery? That is connected to a database?
Screenshots of what your setup actually looks like could help us point you in the right direction.
hi, yes sorry I meant data, either delete it or at least hide it from the repeater
here is a test of the events section, I only put 2 yet but as you can see the 1st one is the March 13th which is outdated so I’d like to hide/remove it
should be in your dataset settings for filters if you’ve setup your repeater that way. Or otherwise you can use code to get it done easily.