Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Simeon Ostberg 123 posts 389 karma points
    May 10, 2021 @ 11:31
    Simeon Ostberg
    1

    Date range in Umbraco Forms datepicker

    Hi everyone,

    Unfortunately I have an issue with the datepicker field in Umbraco Forms. I can only see the range +/- 10 years from now.

    I found this (older) thread about changing the dates: https://our.umbraco.com/forum/umbraco-7/using-umbraco-7/69475-date-picker-for-pre-1900-dates However, my settings are between 1900 and now + 100 years.

    Is there any way to change the available daten range for Umbraco Forms?

    Best, Simeon

  • Murray Roke 503 posts 966 karma points c-trib
    Jun 18, 2023 @ 21:36
    Murray Roke
    0

    I have the same issue (working in Umbraco 10.5 Forms 10.4) I found this documentation page about how to specify the year range in your appsettings.json, however, it had no effect when I tried it.

    Aside: I did find that by clicking the earliest year you could jump in 10-year increments to any date, but that was not intuitive.

    Here's a snippet from my appsettings.json

    {
        "$schema": "./umbraco/config/appsettings-schema.json",
        ... snip...
        "Umbraco": {
            ... snip...
            "Forms": {
                "Options": {
                    "ScheduledRecordDeletion": {
                        "Enabled": true
                    }
                },
                "FieldTypes": {
                    "DatePicker": {
                        "DatePickerYearRange": 100
                    },
    ... snip...
    
Please Sign in or register to post replies

Write your reply to:

Draft