This tutorial will demonstrate how to show/hide fields via Gravity Forms’ conditional logic based on the current time. This functionality can be used anywhere conditional logic is available and is made available by the GP Conditional Logic Dates plugin.

Here are just a few examples of how this could be useful:

Time-sensitive SubmissionsAllow a Gravity Form to only be submitted during a certain time of day.

Time-dependent Confirmations & NotificationsDisplay different confirmation messages or send specific notifications depending on the time of day the form is submitted.

Time-responsive FieldsShow or hide fields on your form depending on the time of day.

Our best solution is the GP Date Time Calculator plugin that is available as an early access perk with our Gravity Perks plugin suite. It provides an “:age” merge tag so you can just put it in your formula like so: {Date of Birth:2:age}. If you’d like to try it out pick up a copy of Gravity Perks and drop us a line via support.

Essentially trying to get a field to display on a weekday BEFORE and AFTER business hours and not during normal business hours. I’ve successfully gotten my {monday}-{friday} types of tags working from your conditional date plugin. I’m just running into a roadblock trying to get this logic to work out someway.

Here’s What I have for the field I’m trying to hide or display:

[Show] this field if [All] of the following match:
Current Time is [Less Than] 07:00am
Current Time is [Greater Than] 04:00pm
Today [isnot] {Saturday}
Today [isnot] {Saturday}

I am using “Beta version” of GP Conditional Logic Dates but i did not get “current time” option in that. Also its not working with week names like i want to open my salon from Monday to Friday so don’t want to book any entry for Saturday and Sunday