Condition Show/Hide Field : It's not working with condition based on date

  • marinamercante
    Asked on January 18, 2016 at 3:01 PM
    if you see there is a
    condition to display a warning or error message and is not working, can
    you help me on that? I'm looking to force users to input the desire port
    arrival date and time 72 hour in advance.
  • Kevin Support Team Lead
    Replied on January 18, 2016 at 3:02 PM

    Hi,

    I checked your form and I can see you have not configured your conditions properly : 

    Condition Show/Hide Field : Its not working with condition based on date  Image 1 Screenshot 30

    Also, I noticed that the condition is only working when the date field is filled, If you would like to show the message only when the condition is filled then you should hide the field : 

    Condition Show/Hide Field : Its not working with condition based on date  Image 2 Screenshot 41

    Try doing it, and let us if it works.

    Thanks.

  • marinamercante
    Replied on January 19, 2016 at 10:37 AM

    Ok let me see if I can explain a little better lets say I want to arrive to port on the 21 of january and today is the 19, so if I input the date january 20 the form should display the message that I have to notify 72 hour in advance and hide the submit button, if the parameter are fullfill and the date of arrival is more than 72 hour then the message remains hidden and the user can hit the submit button.

     

    My question is because if I input -1 will be one day before the present day and I need 3 days before present day so is the 72 hour in advance.

     

    Thanks for your time and waiting for your help.

     

     

  • marinamercante
    Replied on January 19, 2016 at 11:03 AM

    I also notice no less than or more than or I cant Find it, I think there has been mayor changes on coondition since I wrote those I'm just don't know how to do them again, it may be eassy to explein me how to doit from scratch if is not much trouble.

  • Steve VP of Sales Operations
    Replied on January 19, 2016 at 1:11 PM

    The types of comparison statements vary per field type. If you select the number field you'll see the less than and greater than options. If you select date it will show previous and next, and so on. Here's a basic tutorial on setting up conditions.

    http://www.jotform.com/help/57-Smart-Forms-Using-Conditional-Logic 

     

    Condition Show/Hide Field : Its not working with condition based on date  Image 1 Screenshot 20