Setting: How to limit the Date Picker field?

  • pinolino
    Gefragt am 14. Februar 2024 um 06:05

    Guten Tag,


    in einem unserer Formulare nutzen wir das Feld "Datumsauswahl". Wir möchten gerne dort die Möglichkeit auswählen, dass Kunden das Datum nur maximal 6 Monate in Vergangenheit auswählen können. Also bspw. ein Datum von heute, dem 14.02.2023, bis zum 14.08.2023 wählen können.

    Wie können wir das einstellen?


    Danke und freundliche Grüße

    Sarah

  • Devemer Jotform Support
    Geantwortet am 14. Februar 2024 um 08:15

    Hi Sarah,

    Thanks for reaching out to Jotform Support. Unfortunately, our German Support agents are busy helping other Jotform users at the moment. I'll try to help you in English using Google Translate, but you can reply in whichever language you feel comfortable using. Or, if you'd rather have support in German, let us know and we can have them do that. But, keep in mind that you'd have to wait until they're available again.

    Now, let me help you with your question. You can set the range of your date picker through the Date Picker Properties. Let me show you how to do it:

    1. In Form Builder, click on your Date Picker field and click on the gear icon that will appear on the right side of it.
    2. In Date Picker Properties, go to the Limits tab.
    3. Scroll down and set the Start & End Date of your picker.

    Setting: How to limit the Date Picker field? Image 1 Screenshot 20

    Give it a try and reach out again if you have any other questions.

  • pinolino
    Geantwortet am 14. Februar 2024 um 08:51

    Danke für die Erklärung. Können Sie mir auch noch erklären, wie ich dynamische Daten einstellen kann? Ich habe dazu den entsprechenden Artikel gelesen:

    _____

    Dynamic Date Selections

    You can achieve dynamic date selections using the Start & End Date limit with

    today+{n}

    where {n} is the number of days to be added to today.

    Suppose you’re working on a booking form and would like to limit the booking dates to at least one week after submission and also limit the booking window to just one week. For this to happen, you need to set the Start Date to “today+7” (a week after) and the End Date to “today+13” (a window of just one week).

    ___________

    Der Bereich den ich eingrenzen möchte, liegt immer von heute ab an 6 Monate zurück. Also theoretisch wäre die Formel dann today-183. Das funktioniert aber leider nicht. Wie kann ich das eintragen?

  • Carrissa Jotform Support
    Geantwortet am 14. Februar 2024 um 11:09

    Hi Sarah,

    Thanks for reaching back to Jotform. Are you referring to the form Produktregistrierung? If yes, I was able to confirm that you are using the Date picker field. To set the limits, please follow the guide that my colleague shared to you. But if this is not what you are looking for, can you share more information about your need?

    Feel free to reach out again if you have any questions or if we can help you in any other way.

  • Sarah
    Geantwortet am 15. Februar 2024 um 01:43

    Ja. Unsere Kunden sollen über das Formular ihr gekauftes Produkt bei uns für eine 10-Jahres-Garantie eintragen können. Die Anmeldung soll aber nur möglich sein, wenn der Kauf maximal 6 Monate in der Vergangenheit liegt. Daher möchten wir das Kaufdatum dynamisch auf -6 Monate von "heute" limitieren.


    Wie können wir das einstellen?


    Ich habe bereits versucht, den dazugehörigen Artikel auf ihrer Seite "Dynamic Date Selections" zu lesen und umzusetzen. Allerdings bekomme ich eine Fehlermeldung wenn ich die Formel today-183 beim Anfangsdatum eintrage.

    Die Zahl 183 sind 6 Monate in Tagen.

  • Mary_Ed Jotform Support
    Geantwortet am 15. Februar 2024 um 03:51

    Hello Sarah, 

    Thanks for getting back to us and we’re sorry you’re having trouble with this. I understand your request, but I’ll need a bit of time to look into this and work out a solution. I’ll get back to you as soon as I can.

    Thanks for your patience and understanding, we appreciate it.


  • Mary_Ed Jotform Support
    Geantwortet am 15. Februar 2024 um 04:48

    Hello Sarah, 

    Thanks for patiently waiting. Please note that conditionally limiting the dates based on the date selected by your respondents isn't possible. But, you can allow your respondents to select a date within 6 months based on the Start and End dates you have defined.

    To make your date picker available in 6 months, the Start date should be configured 13 days from today, which is February 28 until August 28. You can configure them as follows:

    • Click the Gear icon of your Date Picker to enter its properties.
    • Click on the Limits tab.
    • Then enter in Start Date (today+13) and End Date (today+195).

    Setting: How to limit the Date Picker field? Image 1 Screenshot 20

    Give it a try and reach out again if you have any other questions.

  • pinolino
    Geantwortet am 15. Februar 2024 um 07:59

    Die auswählbaren Daten liegen dann aber nur in der Zukunft, oder? Ich benötige die Daten aus der Vergangenheit.


    Außerdem bekomme ich beim Eintragen eine Fehlermeldung:
    Setting: How to limit the Date Picker field? Image 1 Screenshot 20

  • Devemer Jotform Support
    Geantwortet am 15. Februar 2024 um 08:40

    Hi Sarah,

    Thanks for getting back to us. If I understand you correctly, you want it so that the date picker will only let your form fillers pick a date from today and 6 months ago. For example, if they fill out the form February 15th, the only dates they should be able to choose from are from August 15th last year, to February 15th this year, correct? If so, you can set your date picker limits following the format below:

    Setting: How to limit the Date Picker field? Image 1 Screenshot 30

    Doing so, will disable dates that are beyond 6 months-back from the day they filled out the form. Check out my screencast below for the expected outcome:

    Setting: How to limit the Date Picker field? Image 2 Screenshot 41

    As you can see, dates earlier than August 15 cannot be picked anymore and are greyed out. If this is not what you're looking for, do let us know, and we'll be happy to look into this further with you.

    Keep us updated and let us know if you need any more help.

  • pinolino
    Geantwortet am 15. Februar 2024 um 09:05

    Ja, danke. Genauso möchte ich es einstellen.

    Ich habe nur das Problem, wenn ich es einstellen möchte, dass ich diese Fehlermeldung bekomme:

    "Ungültiges Format":


    Setting: How to limit the Date Picker field? Image 1 Screenshot 20


    Wenn ich "today" (also in englisch) eintippe, springt er automatisch um in "heute" auf deutsch.

  • Silvano Jotform Support
    Geantwortet am 15. Februar 2024 um 11:26

    Hi Sarah,

    Thanks for getting back to us. I am sorry you are having issues getting this feature to work. Can you try selecting today's date instead of typing today in the Start field?

    Give it a try and let us know how it goes.

  • pinolino
    Geantwortet am 16. Februar 2024 um 02:36

    Guten Tag,

    damit kann ich aber leider auch nicht die Funktion anlaufen bringen.

    Können Sie mir sagen, was genau ich eintippen soll?

  • Mary_Ed Jotform Support
    Geantwortet am 16. Februar 2024 um 02:50

    Hello Sarah, 

    Thanks for getting back to us. As suggested by my colleague, you could enter the date today so that your start date is February 16 and your end date is August 16 six months from now. Check out my screencast below to see how it's done: Setting: How to limit the Date Picker field? Image 1 Screenshot 20

    Give it a try and reach out again if you have any other questions.


  • pinolino
    Geantwortet am 16. Februar 2024 um 02:54

    Danke für Ihre Antwort. Ich hatte bereits erläutert, dass es sich um ein Datumsbereich in der Vergangenheit handelt und ihr Kollege Devemer konnte mir dazu auch bereits weiterhelfen. Ich muss nur noch wissen, wie genau ich das auf Deutsch eingeben kann, da ich eine Fehlermeldung bei der Angabe, wie bei Devemer, bekomme.

  • Mary_Ed Jotform Support
    Geantwortet am 16. Februar 2024 um 03:12

    Hello Sarah, 

    Thanks for getting back to us and we're sorry you're getting an error when you try to enter the word "today" in your Date Picker. Would you allow us to type the word "today" in the Date Picker in your form and see if we can replicate the issue?

    Keep us updated and let us know if you need any more help. 

  • pinolino
    Geantwortet am 16. Februar 2024 um 04:57

    Ja, bitte. Ich habe das Formular dupliziert. Bitte nutzen Sie das Formular: "Clone of Produktregistrierung". 

  • Mary_Ed Jotform Support
    Geantwortet am 16. Februar 2024 um 05:23

    Hello Sarah, 

    Thanks for getting back to us. As requested, I have already added the following start and end dates to the cloned form on your account. Check out the screencast below to see my results:

    Setting: How to limit the Date Picker field? Image 1 Screenshot 20

    Reach out again if there’s anything else we can help you with.

  • pinolino
    Geantwortet am 16. Februar 2024 um 05:43

    Super, vielen Dank. Das hat funktioniert.