The new Date picker field can be found under Essentials. Its role is to help you gather date information from your respondents.
Once you’ve added Date picker on your form, you will notice that the right side panel opens up with all the settings available for Date picker.
Let’s take them one by one.
You can provide a label and instructions, as for any other field. Using the toggles, you can mark the date picker field as required, hidden or readonly, depending on your needs.
By default, the date format is set to mm/dd/yyyy – which means respondents need to provide their input following this order: month, day, year. You can choose to change this to either dd/mm/yyyy or yyyy/mm/dd
You can also choose the separator used to display the date. By default, we have set it up to /, but you can change it to . or –
Another aspect that can be customised is the default date. By default, it is set on None, but you can choose to set it to Current or Custom. When current is selected, once your respondents access the form, the date picker will automatically have the current day your respondent accessed the form prefilled/selected.
By choosing custom, you can choose yourself which date should be automatically prefilled/selected.
You can bring some customisation to the calendar itself by choosing on which day of the week the calendar should start – Sunday or Monday.
Under the Validation section, you can find three options of validation: Age verification, Disable days, Start & End date.
Age verification – let’s says you are interested in receiving submissions only from respondents that are over 13 years old. In this case, all you have to do is to enable Age verification and write down the minimum age threshold.
Note: when Age verification is enabled, you can not use Disable days and Start & End date options as they are incompatible.
Disable days – if you want to prevent respondents from selecting a certain day of the week, then all you have to do is to enable Disable days and select the days you are interested in disabling.
Start date & End date – if you are interested in allowing your respondents to select dates between a certain timeframe, then you have to enable Start & End date and select the dates.
You can set up field rules with the new Date picker field. After selecting the field, you have to check the logic operators (you can see them all in the below screenshot).
Then, by clicking on the calendar icon, you can select the exact date you are interested in.
Note: if you go with manually typing the date in Rules, then please follow the ISO format to collect data: YYYY-MM-DD. If you go with any other format, the rule won’t be working.