# Conditional Logic Based on Datepicker Date

**URL:** <https://community.gravityforms.com/t/conditional-logic-based-on-datepicker-date/11846>\
**Category:** Get Help\
**Tags:** conditional-logic, datepicker, gravity-wiz\
**Created:** [February 8, 2022, 9:52pm UTC](https://community.gravityforms.com/t/conditional-logic-based-on-datepicker-date/11846 "2022-02-08T21:52:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![EVH2](https://avatars.discourse-cdn.com/v4/letter/e/3da27b/32.png) [@EVH2](https://community.gravityforms.com/u/EVH2)\
**Post date:** [February 8, 2022, 9:52pm UTC](https://community.gravityforms.com/t/conditional-logic-based-on-datepicker-date/11846/1 "2022-02-08T21:52:57Z")

</div>

Wondering how to set up conditional logic based on the date entered in a datepicker field. We need to set up a conditional field that would display if a date entered in a datepicker field is older than today less 1 year.

For example, if the person enters a date that is older than 1 year ago today, then we want to show an additional field.

Enter your date: 2/8/2020  
[new conditional logic question] Sorry that is more than a year ago. Is this correct?

If date was less than a year ago, proceed as normal, no conditional field.

I know how to use conditional logic, but the datepicker fields aren’t available out of the box. Has anyone come up with a workaround?

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [February 8, 2022, 10:32pm UTC](https://community.gravityforms.com/t/conditional-logic-based-on-datepicker-date/11846/2 "2022-02-08T22:32:47Z")

</div>

Hello. I am not sure if anyone has alternative to this plugin from Gravity Wiz:

> **[Gravity Forms Conditional Logic Dates - Gravity Perks | Gravity Wiz](https://gravitywiz.com/documentation/gravity-forms-conditional-logic-dates/)**
>
> Gravity Forms Conditional Logic Dates allows you to use Date and Time fields with conditional logic to make anything conditional based on dates and time.

That will definitely handle your scenario, but I will leave this open in case some has an alternate solution.

---

<div class="post-metadata">

**Author:** ![EVH2](https://avatars.discourse-cdn.com/v4/letter/e/3da27b/32.png) [@EVH2](https://community.gravityforms.com/u/EVH2)\
**Post date:** [February 8, 2022, 10:34pm UTC](https://community.gravityforms.com/t/conditional-logic-based-on-datepicker-date/11846/3 "2022-02-08T22:34:52Z")

</div>

Thanks Chris. I did see that. We just really need only that little bit of logic and the client is a nonprofit, I was hoping to help them avoid the annual expense.

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [February 8, 2022, 10:53pm UTC](https://community.gravityforms.com/t/conditional-logic-based-on-datepicker-date/11846/4 "2022-02-08T22:53:09Z")

</div>

I’ll leave this open in case someone has an alternate method they’ve used with success.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/gravityforms1/original/2X/f/fef63f0599c45e0218c30d9f5d7ca8bff9b00189.png) [@system](https://community.gravityforms.com/u/system)\
**Post date:** [March 10, 2022, 10:53pm UTC](https://community.gravityforms.com/t/conditional-logic-based-on-datepicker-date/11846/5 "2022-03-10T22:53:18Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
