How to pass the time value from the date picker element

  • Dardo_Boat_Lugano
    Asked on December 9, 2022 at 12:07 PM

    Hello,

    In my form Do I have a Name field and a DataPicker form with Data and Time, let's say Start-Date

    At the end off my form I would like to have a resume where I will write : Dear "name" we will meet you at "Time" (from dataPicker Start-Date) at the station

    How to get just the time ?? I tried with Hous() but I think I'm wrong

  • Jeric JotForm Support
    Replied on December 9, 2022 at 12:27 PM

    Hi Antonio,

    Thanks for reaching out to Jotform Support. I understand the issue, but I’ll need a bit of time to work out a solution. I’ll get back to you shortly.

  • Jeric JotForm Support
    Replied on December 9, 2022 at 1:04 PM

    Hi Dardo_Boat_Lugano,

    Thanks for your patience. I assume you'll be adding a paragraph element at the end of your form. In order to pass the time value from the date picker, you need to get the field name. Here are the steps.

    1. Click on the Date Picker field where you'll get the value from
    2. Click the Gear Icon1670608686 6393772e02007 6393772e01ff0 Screenshot 10
    3. Click on Advanced1670608683 6393772b93b90 6393772b93b53 Screenshot 21
    4. Looks for the Field Details. Get the unique name and the time Field ID. So if you combine them the code will be {dataPartenza246:input_246_timeInput}1670608682 6393772ad7af8 6393772ad7ab7 Screenshot 32

    So you should see this in the paragraph element. Dear {name} we will meet you at {dataPartenza246:input_246_timeInput}

    While I cloned your form, make sure to still check the field details in your original form to make sure it's correct.

    Give it a try and let us know if you need more help.


  • Dardo_Boat_Lugano
    Replied on December 9, 2022 at 1:35 PM

    Ok,.. but if I need only the hh:mm? and not all the info as dd-mm-yyyy?

  • Christy JotForm Support
    Replied on December 9, 2022 at 2:12 PM

    Hi Antonio,

    Thank you for getting back to us. Unfortunately, it is currently not possible to pass the Time value without passing the Date value to the Paragraph field. While the feature you’re looking for isn’t currently available, rest assured we’re always working to add new services and features to Jotform. 

    I've gone ahead and escalated your request to our Developer Team. When or if it's developed depends on their workload, how viable it is, and how many other users request it. If there are any updates, we’ll circle back to this thread and let you know.