Display a pickup time which is 45 minutes after the current time.

  • philiptan17
    Asked on June 28, 2024 at 10:16 PM

    how do i get the pickup time to be customised? i want my form to display pickup time instead of current time, add 45 minutes to it.

    for example my client is doing a booking now, by default current date and time will be shown, however i do not want that, i want the pickup time to be default 11am when the current time is 10.15am now

  • Mike_G JotForm Support
    Replied on June 28, 2024 at 10:33 PM

    Hi Philip,

    Thanks for reaching out to us for help. Thanks for reaching out to us for help. I understand the what you want to do with your form, but I’ll need a bit of time to work out a solution. I’ll get back to you as soon as I can.

    We really appreciate your patience and understanding while we look into this.

     

  • Mike_G JotForm Support
    Replied on June 29, 2024 at 3:22 PM

    Hi Philip,

    I checked your form and see it already has a hidden Date Picker field, the Booking submitted on, with Time fields enabled and is set to have the current date and time when the form loads. Your form also has another date field, the Pickup Time, where I supposed you want to show the current date and time 45 minutes later. To do that, we will use logical conditions to add 45 minutes to the Booking submitted on field and insert it into the Pickup Time field. Let me show you how:

    1. In Form Builder, in the orange navigation bar at the top of the page, click on Settings.
    2. Click on Conditions on the left of the page.
    3. Now, click on Update/Calculate Field. If there is at least one existing condition, click on Add Condition first.
      Display a pickup time which is 45 minutes after the current time Screenshot 50
    4. Set the condition similar to the condition below:
      Display a pickup time which is 45 minutes after the current time Screenshot 61
    5. Click on Save.
      Display a pickup time which is 45 minutes after the current time Screenshot 72

    Check out the screenshot below to see the result:

    Display a pickup time which is 45 minutes after the current time Screenshot 83

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

 
Your Answer