Copying date from a text field to a date picker

  • gaole.elia
    Domanda del 26 giugno 2023 alle ore 02:45

    Buongiorno,

    io ho questi 2 campi nel mio modulo (vedi immagine sottostante).

    Il primo è un selettore data, il secondo è un campo di testo breve.

    Nel mio modulo utilizzo il Widget spreadsheet to form per popolare il tutto in automatico.

    Il widget riempie in automatico il campo di testo e poi questo viene copiato attraverso una condizione nel selettore data.

    Copying date from a text field to a date picker Image 1 Screenshot 30

    Il problema sorge qui, nel copiare la data il programma me la inverte, (vedi immagine sottostante).

    Come vedete, la data corretta è quella 03-01-2001, ma il modulo mi inverte giorno e mese senza alcun apparente motivo.

    Copying date from a text field to a date picker Image 2 Screenshot 41


    Sapreste dirmi come faccio a risolvere questo problema?

  • Mary Eden Jotform Support
    Risposta del 26 giugno 2023 alle ore 06:11

    Hello Elia,

    Thanks for reaching out to us for help. I'd like to let you know that I am using a translation tool to provide assistance, but if you would prefer to get assistance in the Italian language, we can forward your ticket to our Italian team. But, please note that it could take longer to receive a response.

    With that being said, let me assist you with your inquiry. I cloned your form and tested it to see if I could replicate the issue, but the date picker was unable to distinguish the day and the month if the short text field contains a number. But if you input the month in text format, that's when the date picker recognizes the day and the month. Check out the screencast below to see my results:

    Copying date from a text field to a date picker Image 1 Screenshot 30

    To rectify this, instead of using a short text field, please try to use a Date Picker element instead. Take a look at the screencast below to see my results:

    Copying date from a text field to a date picker Image 2 Screenshot 41

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

  • gaole.elia
    Risposta del 26 giugno 2023 alle ore 06:33

    Thank you Mary_Ed,

    Unfortunately, I can't use the date picker, but I will try to edit the text field by having it add the month in text format.

    Thanks for ur help