The Gravity Perks Conditional Logic Dates plugin is a powerful add-on for Gravity Forms, part of the Gravity Perks suite by Gravity Wiz. This plugin extends the Conditional Logic feature of Gravity Forms by allowing you to apply conditional logic based on date and time values, offering a more advanced way to control the visibility of form fields and actions based on specific dates, times, and ranges.
Key Features of Gravity Perks Conditional Logic Dates Plugin
- Conditional Logic Based on Date and Time:
- The plugin allows you to create conditional logic rules that are based on specific dates (e.g., calendar dates) or times (e.g., specific hours of the day). This helps in scenarios where form fields or actions should be triggered only during certain times or on particular days.
- Date and Time Field Integration:
- It integrates seamlessly with the Date and Time fields in Gravity Forms. You can conditionally show or hide fields, or trigger actions based on the values selected in these fields.
- Date Ranges:
- You can set up conditional logic that is activated when a selected date falls within a specific range. For instance, you can create logic that shows certain form fields only during certain periods, like between specific start and end dates.
- Today, Tomorrow, and Specific Date Matching:
- You can use keywords like Today or Tomorrow to create logic that is based on the current date or the day after. You can also specify any fixed date and have conditions based on that.
- Time-Specific Conditions:
- The plugin allows you to create rules that depend on the time of day, which is especially useful for forms that need to show or hide fields based on specific hours, like business hours or event times.
- Custom Date Formats:
- The plugin supports custom date formats, which allows you to display and conditionally format dates in the way that works best for your site's design or the requirements of your form.
- Support for Date-Related Fields:
- In addition to the standard Date and Time fields, the plugin works with custom date-related fields, such as those generated by Date Picker fields or third-party add-ons.
How to Install Gravity Perks Conditional Logic Dates Plugin
- Purchase Gravity Perks:
- The Conditional Logic Dates plugin is part of the Gravity Perks suite. You can purchase it from Gravity Wiz.
- Install Gravity Perks:
- After purchasing, download the Gravity Perks plugin.
- In your WordPress dashboard, go to Plugins > Add New, click Upload Plugin, and upload the Gravity Perks zip file. Then, activate it.
- Install the Conditional Logic Dates Add-On:
- After installing and activating Gravity Perks, go to Gravity Perks > Perks in your WordPress dashboard.
- Find the Conditional Logic Dates add-on and click Install. Then, activate the add-on.
- Configure the Plugin:
- Once the plugin is activated, navigate to your Gravity Forms and start editing a form that contains Date or Time fields. You will see new options in the Conditional Logic section when configuring fields.
- Set Up Conditional Logic with Date and Time:
- When editing a field in your form, you will now have the ability to use date and time as conditions for showing, hiding, or enabling actions based on the selected date or time.
How to Use Gravity Perks Conditional Logic Dates Plugin
- Creating Conditional Logic Based on Date:
- When editing a field, enable Conditional Logic and choose the field condition based on a Date or Time field.
- For example, show a certain field only if the date selected is within a specific range. You can set conditions such as:
- Show a field only when the date is within a specified range (e.g., January 1st to March 31st).
- Show a field if the date selected is today or tomorrow.
- Using Time in Conditional Logic:
- You can create conditions that check the time of day and only display fields during certain hours.
- For example, you can set a form to only show certain options during business hours (e.g., between 9 AM and 5 PM) or trigger specific actions based on the selected time.
- Setting Date-Based Ranges:
- For fields like Date Picker or Time, you can define conditional logic that is triggered when a selected date or time falls within a defined range. For instance:
- Show a field if the date falls between January 1, 2024, and December 31, 2024.
- Hide certain fields outside of working hours (e.g., between 8 PM and 7 AM).
- For fields like Date Picker or Time, you can define conditional logic that is triggered when a selected date or time falls within a defined range. For instance:
- Using Keywords (e.g., "Today" or "Tomorrow"):
- You can create rules that trigger based on relative dates, such as Today or Tomorrow. For example, only show a field if the current date is today, or show something special if the user selects tomorrow.
Example Use Cases
- Event Registration Forms:
- For events that take place during certain time windows, you could hide or display fields based on the event date. For instance, you might only want to show a “special discount” field if the user is registering within a certain time frame (e.g., early bird registration period).
- Business Hours Forms:
- If you're running a booking form, you can use Conditional Logic Dates to ensure certain fields or options only appear during your business hours. For example, only show appointment slots for a user if it is during the business's opening hours.
- Sales or Promotions:
- If you're running a limited-time sale, you could use the date and time conditions to show promotion-specific fields or discounts only during the sale period. For example, only show a discount field if the current date falls within the promotional period.
- Seasonal Forms:
- Use the plugin to activate or deactivate seasonal promotions, offers, or content. For example, you might want to show a “holiday special” field only between December 1st and December 31st.
Benefits of Using Gravity Perks Conditional Logic Dates
- Greater Control Over Form Visibility:
- By adding date- and time-based conditions, you gain greater control over when certain form fields appear or behave. This can lead to a better user experience, as users will only see relevant fields at the right time.
- Improved User Engagement:
- With conditional logic that is based on real-time data, forms become more responsive to users' needs. This can improve user engagement by offering the right options at the right moment.
- Customizable Time-Sensitive Forms:
- Whether you're creating booking forms, registration forms, or sales-related forms, conditional logic based on date and time allows for more advanced, time-sensitive functionality, such as limiting availability, showing discounts, or triggering special promotions.
- Simplicity:
- Even though the plugin adds powerful functionality, it’s simple to use and integrates directly into the existing Gravity Forms user interface. There’s no need for custom coding.