Can I set conditions for a specific date?

  • Profile Image
    pandcproductions
    Asked on June 26, 2012 at 08:11 PM

    I want my customers to be able to book me through this form.  I need the form to notify them if a date is unavailable. The "conditions" options only let's me set "before & after".  PLEASE tell me this is possible.  Thank you.

  • Profile Image
    abajan
    Answered on June 26, 2012 at 11:39 PM

    Unfortunately, our product does not currently have such functionality but I'm aware of tickets which have been submitted requesting the same. However, I'll leave the question opened in case one of my colleagues can devise a workaround of some sort for you.

  • Profile Image
    pandcproductions
    Answered on June 27, 2012 at 12:44 AM

    Fortunately, I just figured it out myself.  Hopefully you can pass this along to the other moderators and help out other people.  You have to create 2 rules within 1 condition.  For example:

    If I want January 1st to trigger a condition, I need to set 1 rule for dates after Dec. 31 & another rule for dates before Jan. 2.  You have to remember to change the trigger to "ALL" rules. (that tripped me up for a while)  If you do this it works great.  Pass it on!

  • Profile Image
    abajan
    Answered on June 27, 2012 at 01:11 AM

    Oh, I'm sorry. I misunderstood your question. I thought you were looking for a way to prevent more than one user booking a particular date.

    Nevertheless, your solution for what you actually wanted (and clearly stated) is quite good.

  • Profile Image
    abajan
    Answered on June 27, 2012 at 06:30 AM

    For some reason, in order for your solution to work, I had to set the "Before" date to the one I want to trigger the condition if selected. August 6, 2012 is the date that triggers the condition in this demo. If you clone the form you'll see that it has the following condition:


    Moreover, I discovered that this method only works with DateTime fields and not the Birth Date Picker. As a matter of fact, neither the "Before" or "After" selections work with the Birth Date Picker. I don't know if our developers are aware of this. So, I'd better submit a ticket to get it fixed.