Streaming live at 10am (PST)

Date condition visibility


#1

Hey guys, is there any way to hide or show an element using a date? For example “hide a div after 19/12/2018”



#2

No, it’s always “in the past” “in the future” from today. A lots of things are still missing around dates, their formats and how we can filter depending on exact dates, ranges etc.

Votes for those ideas:

https://wishlist.webflow.com/ideas/search?page=2&query=dates&utf8=✓
https://wishlist.webflow.com/ideas/WEBFLOW-I-487
https://wishlist.webflow.com/ideas/WEBFLOW-I-65
https://wishlist.webflow.com/ideas/WEBFLOW-I-88


#3

Is there any way to achieve this? I have a class list with a start and end date, I wanna stop showing those classes after they start


#4

You can list classes from today to n days in the future.

Tomorrow, today’s classes won’t be listed anymore.

However, if a class starts at 4PM today, it will continue to be listed until tomorrow.

I use such filters to display cruises schedules on flatscreens TVs (Webflow CMS > Chromecast > TV Screen). As you can see below, this morning’s departures are still listed (it’s 3PM as I post this message)


#5

Hi @sanshiro.
A little javascript will get you what you need. :slight_smile: I’ve emailed.

Thanks,
Josh


#6

I’m in love with foxy now


#7

#foxypower


#8

what is that javascript please let me know


#9

How to add class in webflow?


#10

Hi @naddesigns.
The javascript we helped @sanshiro with is specific to Foxy. If you’ll be using Foxy as well, let us know and we can help you get things setup.

Thanks,
Josh


#11

well, i do exactly what @vincent just told before, hide stuff on the past from a date and that just works fine for the project.

foxy in the other hand just help me a looooooooooot creating the store, they almost do all the configuration for me, just an amazing service there doing just great job like webflow guys…


#12

I keep hearing the same good things about those guys and their service :slight_smile:


#13

Yes I am using foxy.


#14

Hi @naddesigns.
Thank you for confirming. I just sent you a private message.

Josh