What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    Date comparison not working as expected

    Asked by stormingrobots on January 24, 2017 at 12:43 AM

    Date comparison "Before" vs "After" backward.  

    in the conditional criteria ; I have the enrollment date field set to "Current" date.  I then have a criteria to  compare to

    this current date with "2017/03/01" . If the current date is less than that, i assign a particular value. However, it only shows the proper value if I do   "After" "2017/03/01"  . But the current date is "2017/01/24".  I will continue to see if it is because the format of the date was wrong!?

     https://www.jotform.com/70208611384148

    Page URL:
    https://www.jotform.com/70208611384148

  • Profile Image
    JotForm Support

    Answered by owen on January 24, 2017 at 03:20 AM

    Hi,

    This is caused by another condition you setup for the field called "Early Registration". You pass $0.00 if the "Request a $10 6-month License." is equal to no and this overrides the condition related with the date field. Since it is set to no by default it does not change if the option is changed to yes. 

    I suggest you to select nothing by default:

    This should make the conditions work as expected. Please try this and let us know if the issue still persists. 

    Do contact us again if you need any further assistance. 

  • Profile Image

    Answered by stormingrobots on January 24, 2017 at 09:28 AM

    Thank you!

    I did not catch that because the value shows up if I switched to "After" instead of "Before".  I wonder why changing to "After" will cause the amount to show up?

  • Profile Image
    JotForm Support

    Answered by Welvin on January 24, 2017 at 11:25 AM

    That is because of the default value. I have removed the value for you and changed your conditional logic to "after".

    It's not empty by default: