"Date" Field with Only "Month/Year" Options

  • dlasson
    Asked on August 27, 2015 at 10:36 AM

    I could not find a thread that addresses my specific need.

    I want to have a field where users can select a month and a year. Specifically, the question that users will answer is: "Employment Start Date:" and they would select from "month" and "year" dropdown fields (on one line). 

    Thanks.

  • Mike_G JotForm Support
    Replied on August 27, 2015 at 2:55 PM

    If you create two drop-down fields with each having specific options manually and position them in the form so they will be in one line, it will be considered as two fields and will appear in the submission as two fields.

    You can use the DateTime field and disable the "Day" textbox using CSS code so it will not show on the forms. You can also use CSS codes for the calendar drop-down to remove the days of the week. 

    You can check this form http://form.jotformpro.com/form/52386319191964

    Date Field with Only Month/Year Options Image 1 Screenshot 20

    Please feel free to clone it so you can inspect the CSS codes added.

    I hope this helps. Let us know if you need any further assistance. Thank you. 

  • dlasson
    Replied on August 28, 2015 at 11:53 AM

    It would be easier for users to just select a month from a month drop-down menu and a year from a year drop-down menu. Is that possible?

  • Mike_G JotForm Support
    Replied on August 28, 2015 at 3:47 PM

    There are two widgets that you can use to accomplish such task: 

    Dynamic Dropdowns Widget

    Date Field with Only Month/Year Options Image 1 Screenshot 30

    Here's a sample form for the Dynamic Dropdowns Widget: http://form.jotformpro.com/form/52395579265974

    Configurable List Widget

    Date Field with Only Month/Year Options Image 2 Screenshot 41

    Here's a sample form for the Configurable List Widget: http://form.jotformpro.com/form/52396191727968

    Please feel free to clone the forms so you can inpect their settings. 

    I hope this helps. Let us know if you need any further assistance. Thank you.

  • dlasson
    Replied on August 28, 2015 at 4:52 PM

    I used the Dynamic Dropdowns widget. It worked great! Thanks.

  • David JotForm Support
    Replied on August 28, 2015 at 6:03 PM

    Glad to hear it!  If you have any further questions, let us know and we will be happy to help.

  • cgrouge
    Replied on June 1, 2016 at 12:11 PM

    I used the first response from Mike_G on one of my forms and it works great (http://form.jotformpro.com/form/52386319191964) but the submission is still showing the day. Is there any way to remove the day from the submission as well?

  • victor
    Replied on June 1, 2016 at 12:43 PM

    I have just reviewed the form and notice that my colleague added CSS to hide the day field. This only hides the field in the form, but when users enters the date, the day field will automatically be filled. If you only wish to save the month and year, I would suggest you try the other work arounds provided by my colleagues.