How to show/hide field depending on the time selected from the appointment field?

  • reservationssaldos
    Asked on September 12, 2024 at 6:31 AM
    3.) Depending on the time slot chosen, the field/element for the drop-down of "TASTING / PRIX FIXE MENU..." should be hidden if 11am and 1:30pm are chosen, but will be visible if 5:00 and 7:30pm are chosen. This should be repeated for every day.
  • Lara JotForm Support
    Replied on September 12, 2024 at 6:32 AM

    Hello reservationssaldos,

    To achieve this, we can add a Short Text field that will copy the value from the appointment field. Which we’ll also apply an Update/Calculate Field and Show/Hide Field condition to. Here’s how:

    1. In your Form Builder, click Add Form Elements from the left side of your screen.
    2. Look for Short Text and drag it to your form.

    How to show/hide field depending on the time selected from the appointment field? Image 1 Screenshot 50Next, add an Update/Calculate Field condition to copy the value from the Date/Time field, similar to the screenshot below.

    How to show/hide field depending on the time selected from the appointment field? Image 2 Screenshot 61Lastly, enter the Show/Hide Field condition below so that the TASTING/PRIX FIXE MENU field is hidden if the user selects the time slots 11:00 AM or 01:30 PM.

    How to show/hide field depending on the time selected from the appointment field? Image 3 Screenshot 72Checkout the screencast below to see my results:

    How to show/hide field depending on the time selected from the appointment field? Image 4 Screenshot 83 Give it a try and let us know how it goes.

  • reservationssaldos
    Replied on September 12, 2024 at 7:34 AM

    This is it! Solved my issue! Thank you so much! Ms. Lara, and to the others! Much appreciated all your help! Thank you!

Your Answer