How to transfer date picker widget value to date picker field

  • replumbpros
    Asked on March 4, 2024 at 9:00 PM

    I am trying to use a date picker widget to select an initial date, then copy this date into the basic date picker, or another date picker widget.

    I want to start this string from the date picker widget because we think the calendar is easier to use.

    The date strings are not working with the widget like they do in the basic date picker. Can you help?

  • Richie JotForm Support
    Replied on March 5, 2024 at 12:10 AM

    Hi replumbpros,

    Thanks for reaching out to Jotform Support. You can use the Date picker widget and use the form calculation widget to get the value. Let me show you how:

    1. In Form builder, click Add Form Element.
    2. In Form Elements, click Widgets tab.
    3. Search for Form Calculation and click wand icon.
      How to transfer date picker widget value to date picker field Image 1 Screenshot 50
    4. In Form Calculation Widget, click Add Field and add your Date picker widget. Set it to String (A-Z).
    5. Click on Save.

    Once you get the value of the Date picker widget through the form calculation widget, you can add the condition to transfer it to the date picker field.

    1. Add Date Picker field.
    2. Then, add an UPDATE/CALCULATE FIELD condition.
      How to transfer date picker widget value to date picker field Image 2 Screenshot 61
      How to transfer date picker widget value to date picker field Image 3 Screenshot 72

    Check out this screenshot of my result:

    How to transfer date picker widget value to date picker field Image 4 Screenshot 83

    You can check my test form.

    Give it a try and let us know if this works for you.