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 set a default date on a Birth Date Picker tool

    Asked by benjaminaurelius on August 11, 2014 at 01:49 PM

    Hey,

    I am using the standart birthday picker in my form. How could I set the pickers to be prefilled, e.g. 1th january 1980 instead of them beeing all empty.

    Thank you!

    Birthday Picker default date set date
  • Profile Image
    JotForm Support

    Answered by Mike_T on August 11, 2014 at 02:35 PM

    Thank you for contacting us.

    There is no way to do set a default date on the Birth Date Picker tool via the editor. However, it is possible to use a form prepopulation URL in order to set the date.

    Example:

    http://form.jotformpro.com/form/42225345695963?birthDate1[month]=January&birthDate1[day]=1&birthDate1[year]=1980

    You can use the following URL to construct the prepopulation URL for your form:

    http://prepopulate.jotform.io/

    Alternatively, you might consider using a DateTime field with enabled Default Time option:

    Please feel free to contact us if you need any further assistance.

  • Profile Image

    Answered by benjaminaurelius on August 14, 2014 at 02:41 PM

    Thank you for the tip. But it doesnt seem to work with embedded code, in my case for wordpress. I use the <script src= etc. beginning. As soon as I change the normal URL which links to /jsform/... to the prepopulated one, the form is not shown anymore.

  • Profile Image
    JotForm Support

    Answered by david on August 14, 2014 at 05:07 PM

    Hi,

    Unfortunately there is no possible way to do this currently within the form.  I have submitted a feature request to see if this is something we can add in the future.  Please let us know if you have any further questions and we will be happy to help.

    Thank you for using JotForm!

  • Profile Image
    JotForm Support

    Answered by steve on August 15, 2014 at 01:23 AM

    Hello,

    You may also consider using the DateTime field instead. You can turn off the Time via the element properties. It's a better date picker, and comes with a popup calendar. You can also set a default date of the current date. It doesn't have the ability to set the default date to any particular date though.

    Please give it a try and let us know if it will work for your needs.

    Kind Regards

  • Profile Image
    JotForm Founder

    Answered by aytekin on August 15, 2014 at 03:12 AM

    "Thank you for the tip. But it doesnt seem to work with embedded code" 

    This could work if you use the iframe code instead. 

    I know you are using wordpress and iframe code may or may not work on wordpress. So, I am not sure if it will work, but you can give it a try. 

  • Profile Image
    JotForm Support

    Answered by steve on August 25, 2014 at 10:02 PM

    Hello,

    We decided not to update the Birthday picker to allow custom default dates. Instead, we're going to update the DateTime element to allow:

    1) default time of Now
    2) custom default time
    3) default date of Now
    4) custom default date

    We'll update this ticket once that's implemented.

    Thanks

  • Profile Image

    Answered by MacclesfieldCollege on November 12, 2014 at 05:27 AM

    Any news on this please?

  • Profile Image
    JotForm Support

    Answered by steve on November 12, 2014 at 06:25 AM

    Hello,

    As per my comment above we've decided not to update this, in favor of the DateTime element. Please use that instead. It's accessible from the main interface on the form builder.

    Thanks!

  • Profile Image

    Answered by MacclesfieldCollege on November 12, 2014 at 06:29 AM

    Yes, sorry. I do mean the DateTime element. I cannot get that to have a default date also. I am using Dreamweaver source code. 

  • Profile Image
    JotForm Support

    Answered by Welvin on November 12, 2014 at 09:19 AM

    You can prepopulate the form URL, for example: 

    http://form.jotformpro.com/form/43153500679959?datetime[month]=12&datetime[day]=30&datetime[year]=2015

    Where "datetime" is the field name. [month], [day] and [year] are standard prefix to identify each boxes.

    Then use our iFrame method when embedding your form. In the iFrame codes, replace the current URL to the one with prepopulated values. This should work. Kindly try it.

    Thank you!