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

    How to remove year using DateTime Quick Tools

    Asked by michaeljamesinsurance on November 03, 2015 at 12:08 PM

    My company needs to collect anniversary date, but we only need month and day not year.  Can year be removed if we use the DateTime quick tool?  If so how?

    I tried to use a Configurable Widget and it kind of worked.  I did not make the field required so if the customer does not have an anniversary date, today's date is automatically picked.  If the customer does not have an anniversary date, it needs to stay empty. So I removed it.

    I know I could also use two different drop down fields - one for month and one for day, but when I export the submission to excel it puts the data in two fields.

    Any suggestions...

  • Profile Image
    JotForm Support

    Answered by Welvin on November 03, 2015 at 03:19 PM

    You can hide the Year input using a custom CSS codes. However, that will just hide the input box, but will still submit the year value. Also, the field is required so you can't skip it.

    The workaround would be to use the Dropdown field. Then combine the two using our calculation widget. The calculation widget will serve as your single field for the two dropdown in the reports.

    Here's a sample form: https://form.jotform.com/53066327119959.

    Here's how to calculation in the form: https://www.jotform.com/help/259-How-to-perform-calculation-in-the-form.