Need help setting up a button for different actions depending on the hour or day of the week

Hi, I’m trying to make a button that will transfer me to another page between the hours of 9:00 am and 5:00 pm, and between the hours of 5:00 pm and 9:00 am it will transfer me to another job, but every Saturday I need it to transfer me to the page between those hours another third,
I tried to do by current time/date but without success unfortunately

Thanks for the helpers :slight_smile:

Hi there, @liorgarin… here is an example of the workflow event that would trigger when the button is clicked between the hours of 9am and 5pm on any day that isn’t Saturday, and you would add an action to the event that takes the user to the appropriate page.

With that example, I’m guessing you can figure out the other workflow events you will need to add.

Hope this helps.

Best…
Mike

1 Like

Thank you very much! You helped me as best as possible

1 Like

Another Solution :slightly_smiling_face:
JS CODE :
→ Return text for each duration and you can based on txt define actual workflow.


Editor :

I hope this will help you.

This topic was automatically closed after 70 days. New replies are no longer allowed.