• Home
  • Blog
  • Documentation
  • FAQ
    • Pre-Sales Questions
  • Log In
  • Get Easy Forms
  • Home
  • Blog
  • Documentation
  • FAQ
    • Pre-Sales Questions
  • Log In
  • Get Easy Forms
home/Knowledge Base/Advanced Techniques/Date Based Conditional Logic
Popular Search:Getting Started

Date Based Conditional Logic

899 views 0 March 4, 2022 admin

Date-Based Conditional Logic

Date Based Conditional Logic adds support for conditional logic based on selected dates, the current date, relative dates, and more in Date fields.

  • Show or hide fields based on user-input date
  • Show or hide fields based on the current date, when a user is filling out the form, or relative dates.
  • Special merge tags give you flexible options to precisely trigger conditional logic.

Granular settings for conditionally displaying which fields and options display on your forms.

  • Provide different prices or product options based on when a user is filling out the form.
  • Automatically adjust seasonal pricing.
  • Show an alert message for weekend submissions.

Features

  • Show and hide fields based on Date field values.
    Display different fields based on user input.
  • Supports static dates, current date, and relative dates.
    Flexible conditional logic to meet your form’s unique needs.
  • Day of the week merge tags.
    Trigger conditional logic based on weekdays, weekends, or any combination.
  • Full Easy Forms integration.
    Use date-based conditional logic in Confirmation Settings (Conditional Redirection or Thank You messages) or with any add-on.

Feature Details

Date-Based Logic

Date-based logic supports static dates, relative dates and days the week. This is done using three comparison operators: is, greater than, and less than. Multiple rules can be combined to match date ranges or exclude specific dates from the match.

Note: “Is Not” is a condition too, by selecting “None” (in “Type of Condition“)

Static Dates

To compare a Date field to a static date, select the Date field, choose a comparison operator, and enter the static date to compare against.

Display field if current date is after of March 04, 2022:

Conditional Logic Dates - Static Dates

Note: Date values must be entered using the HTML5 date format: YYYY-MM-DD

Relative Dates

There’s two ways that relative dates are supported in Date Fields:

  • Comparing a user-inputted date to a relative date.
  • Comparing the current date to a static or relative date.
Today

Comparing user input to relative dates is done using the conditional-logic-only merge tag {today}. It allows conditional logic to be applied to fields based on whether the selected date is, is greater than or is less than the current date.

Display field if selected date is today:

Conditional Logic Dates - Relative Date - Today

The {today} merge tag supports modifiers for making date comparisons like:

  • Date is at least 2 weeks away: {today:+14}
  • Date is no more than 90 days before today: {today:-90}

Conditional Logic Dates - Relative Date - Today + Modifier

Days of the Week

Use the following conditional-logic-only merge tags to check for a specific day of the week: {monday}, {tuesday}, {wednesday}, {thursday}, {friday}, {saturday}, {sunday}. These are used in the same manner as the {today} merge tag.

Conditional Logic Dates - Relative Date - Monday

Weekend or Weekday

Using the days of the week merge tags, you can apply conditional logic based on whether the date falls on a weekend or weekday.

First, we’ll tackle checking for weekend dates.

  1. Add a new rule
  2. Select “Any” as Type of Condition
  3. Select your Date field from the first drop down.
  4. Select is from the second drop down.
  5. Enter {saturday} in the third input.
  6. Add a new condition by clicking the “Add rule” button at the end of the panel and follow steps 3, 4 and 5 again.
  7. Enter {sunday} for the third input on the new condition.
  8. Save

You can follow the same steps to check for a weekday. The only difference is: Change the Type of Condition, from “Any” to “None“.

Was this helpful?

Yes  No
Related Articles
  • Compare Date fields: How to ensure that Finish Date is at least equal to *or after* Start Date, and *not* before?
  • How to embed a Form using iFrame code
  • Dynamic Content: Conditional Logic with Dates
  • Calculate Difference of Time between Two Time fields
  • Date Formats with Dynamic Content
  • Create Users that Can Only Submit Forms

Didn't find your answer? Contact Us

Leave A Comment Cancel reply

You must be logged in to post a comment.

Advanced Techniques
  • Date Based Conditional Logic
  • Compare Date fields: How to ensure that Finish Date is at least equal to *or after* Start Date, and *not* before?
  • How to embed a Form using iFrame code
  • Dynamic Content: Conditional Logic with Dates
  • Calculate Difference of Time between Two Time fields
  • Date Formats with Dynamic Content
View All 21  
Popular Articles
  • How to Show/Hide HTML elements with Conditional Rules
  • How to enable / disable DEBUG mode
  • How to Submit a Form as WhatsApp Message
  • How to update Form Stats from the command line
  • How to compare two fields to pass the validation (jQuery Validation)
KB Categories
  • Add-Ons
  • Advanced Techniques
  • Common Issues & Troubleshooting
  • Developers "How To's"
  • Getting Started
  • How To

  Date Formats with Dynamic Content

Create Users that Only Can Manage Form Submissions of Shared Forms  

About Easy Forms

With Easy Forms you can create unlimited web forms and most importantly the complete management of them without paying monthly fees

Resources
  • Knowledge Base
  • Documentation
  • Pre-sales Questions
  • Blog
Useful Help Links
  • Get Easy Forms
  • Live Demo
  • License Terms
  • Contact Us
Frequent Visit Links
  • Pre-Sales Questions
  • System Requirements
  • Installing Easy Forms
  • Upgrading Easy Forms
  • Privacy Policy
  • © 2015 - 2024 Baluart EIRL. All Rights Reserved.

Popular Search:Getting Started