• 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/Dynamic Content: Conditional Logic with Dates
Popular Search:Getting Started

Dynamic Content: Conditional Logic with Dates

678 views 0 September 5, 2022 admin

A user wrote us the following query:

I’m using Easy Forms for an online event registration, and I would like to send a different message, before the event (when the user will attend the webinar in live mode) or after the event when the user will only have access to the replay.

Is it already possible?
Is a something possible with the « conditional emails » addon?

The answer is Yes to both questions, and the solution applies not only to the conditional emails add-on, but to all other parts of the application that make use of Dynamic Content.

Basically, we need to add a condition in the email template.

{% assign current_date = 'now' | date: '%Y-%m-%d' %}
{% if current_date == '2022-04-01' %}
Thanks for the registration. Here’s the link to join us for the live events.
{% else %}
Thanks for the registration. Here’s the link to view the replay.
{% endif %}

That’s it!

Do you know what Dynamic Content is? Click here to read our documentation.

Tags:Dynamic Content

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
  • Date Based Conditional Logic
  • 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
  • Dynamic Content: Conditional Logic with Dates
  • 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
  • Date Based Conditional Logic
  • 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

  Form Endpoints: Make fully customizable forms

Date Formats with Dynamic Content  

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