Forum Academy Marketplace Showcase Pricing Features

Display a text based on current time of day

Hi, I would like to display a ‘Good morning @current users name’ at a certain time of the day, and that it automatically changes to ‘Good afternoon…’ lets say 12:00 (European time format)

I know how to connect the logged in users name to the text message, but I can’t get the conditions to work - to make that message change depending on the time of the day. I’m using the “current date/time:extract: hour <12 and current date/time:extract: hour >6” condition. Then I choose what text to display. Then I add a new condition with different time etc… But this doesn’t seem to work for me.

Any helpful souls out there?

Hey, take a look at my loom. I have done what you are asking. :slight_smile:

Let me know if you have any questions.

Benjamin

3 Likes

Thank you so much Benjamin, that worked!! :slight_smile:

Nice, @ben4.

I wonder if it could be simplified a bit by eliminating the custom state and referencing the Current date/time directly in the Conditional.

-Steve

You could do that.

There was a reason I added the set state, but I don’t remember what it is anymore. (I have a brain injury and forget almost everything from anytime in the past)

Use the notes on any element, workflow, page etc. to write down things to remind you in the future what they were for and what they maybe interact with…don’t forget to sign your name at the bottom so you know it is a note from your former self

@boston85719 Haha thank you, I have always wanted to use the note function, but for something I am not using, I wouldn’t have taken notes anyway.

I do that all the time as well, and I don’t have a brain injury. :crazy_face:

(That’s just a feeble attempt at humor. I don’t mean to make light of your situation. :wink: By the way, there are some very promising developments with regard to leveraging AI to aid memory.)

-Steve


Premium Bubble Plug-Ins

@shot Not to worry, it was funny. In fact, its is said to me very often. Haha. I’ll take a look at the link shortly. Thank you!