conditional logic not workign with appointment and single select

  • Mrcos
    Asked on September 15, 2024 at 11:39 AM

    the single select option needs to change the days of the appointment date picker. for example, if 0 - 1 hours was selected the delivery date needs to be 7 days from the current date. By default the appointment picker is set to 72 hours minimum notice, only weekdays. But it no matter what i set the addDays formula to, the date picker doesnt change at all. please help.conditional logic not workign with appointment and single select Image 1 Screenshot 30conditional logic not workign with appointment and single select Image 2 Screenshot 41

  • Mrcos
    Replied on September 15, 2024 at 11:40 AM

    Conditional logic didn't upload, so here.

    conditional logic not workign with appointment and single select Image 1 Screenshot 20

  • Arghya JotForm Support
    Replied on September 15, 2024 at 11:53 AM

    Hi Marcos,

    Thanks for reaching out to Jotform Support. May I know, do you want to show the delivery date only, or do you want your fillers to set an appointment also? Please know that the date calculation condition can't be applied to the Appointment element. You can try using the Date Picker element.

    Once we hear back from you, we'll be able to move forward with a solution.

  • Mrcos
    Replied on September 15, 2024 at 1:05 PM

    We need all of these:

    1. Limiting deliveries per day.
    2. A 3-days minimum notice, not including weekends.
    3. Increase number of minimum days notice depending on amount from single select.
    4. Prevent holidays and weekends from selection.
    5. Exclude what days are taken.


    Not needed:

    1. Appointment time
  • Mrcos
    Replied on September 15, 2024 at 1:09 PM

    The date calculation works on the appointment function. For example, I set up IF today is 'Sunday' then addDays(3) to Delivery Date for End Date. And that works great.

  • Mark Alan JotForm Support
    Replied on September 15, 2024 at 1:24 PM

    Hi Marcos,

    I thought you've figured this out. Can you tell us if you still need help on this?

    Reach out again if you need any other help.


  • Mrcos
    Replied on September 15, 2024 at 2:28 PM

    This has not been resolved yet. I am still waiting for someone to respond with a solution.

  • Mark Alan JotForm Support
    Replied on September 15, 2024 at 3:38 PM

    Hello Marcos,

    I cloned your form and checked the appointment limit, you've already set up the delivery limits into 2 appointments per day. See the screenshot below:

    conditional logic not workign with appointment and single select Image 1 Screenshot 40

    • Limiting deliveries per day.

    This does not need a condition to be set as this automatically blocks out the appointment days if there's already 2 appointments set in the same day.

    • A 3-days minimum notice, not including weekends.

    And to set the minimum notice that does not include weekends, you just need to add the weekends on vacation date not just to block out dates on your calendar to avoid appointments to be scheduled but to also exclude them from days count. Let me show you how:

    1. In your Appointment field, click the gear icon.
    2. Go to Limits.
    3. Click the Add New Vacation Date button and add the dates on every weekends.
      conditional logic not workign with appointment and single select Image 2 Screenshot 51

    I've also checked the intervals availability and you've already excluded the weekends.

    • Increase number of minimum days notice depending on amount from single select.

    Automatically increasing the minimum day notice is not possible, and conditional logic could not be applied on this. This should be manually adjusted from the Appointment properties limits.

    • Prevent holidays and weekends from selection.
    1. In your Appointment field, click the gear icon.
    2. Go to Limits.
    3. Click the Add New Vacation Date button and add the dates on every weekends and/or Holidays.

    conditional logic not workign with appointment and single select Image 3 Screenshot 62

    • Exclude what days are taken.

    Since the maximum appointment limit is set to 2 per day, then the day/date picked will be automatically excluded in the option.

    Options to automatically trigger the functions using conditional logic doesn't work specifically to what you're trying to achieve.

    Reach out again if you have any other questions.



  • Mrcos
    Replied on September 15, 2024 at 4:00 PM

    "And to set the minimum notice that does not include weekends, you just need to add the weekends on vacation date not just to block out dates on your calendar to avoid appointments to be scheduled but to also exclude them from days count."

    Are you saying i have to manually add every weekend for every year?


    "Automatically increasing the minimum day notice is not possible, and conditional logic could not be applied on this. This should be manually adjusted from the Appointment properties limits."

    Its possible when the trigger is based on a days, not the single selection option. Which is why I initially reached out to support.

  • Aries JotForm Support
    Replied on September 15, 2024 at 6:32 PM

    Hi Marcos,

    I’ll need a bit of time to look into this. I’ll get back to you as soon as I can.


  • Aries JotForm Support
    Replied on September 16, 2024 at 9:46 PM

    Hi Marcos,

    Thanks for your patience. Since you don't need the time, I would suggest using the Date Picker element. You can try to add two basic Date Picker elements to your form. The first one is to show as the delivery date and the second is for the current date, which is hidden. Here's how to do it with the cloned version of your form:

    1. In Form Builder, click on Add Form elements.

    2. Add two Date Picker elements.

    conditional logic not workign with appointment and single select Image 1 Screenshot 60

    Set the second Date Picker element to current.

    3. Click on the gear icon and go to Options, then select Current.

    conditional logic not workign with appointment and single select Image 2 Screenshot 71

    Set the Update/Calculate field conditional logic.

    4. Right click on the Current Date field and choose Conditional Logic.

    5. Click Add Condition and choose Update/Calculate Field.

    conditional logic not workign with appointment and single select Image 3 Screenshot 82

    6. You can follow the conditional logic sample format below:

    conditional logic not workign with appointment and single select Image 4 Screenshot 93

    Here's the result:

    conditional logic not workign with appointment and single select Image 5 Screenshot 104

    Give it a try and let us know if you have any other questions.

  • Mrcos
    Replied on September 18, 2024 at 5:44 PM

    The problem with that, is not being able to limit how many people can select that day.

  • Aries JotForm Support
    Replied on September 18, 2024 at 6:36 PM

    Hi Marcos,

    I’ll need a bit of time to look into this. I’ll get back to you as soon as I can.

  • Aries JotForm Support
    Replied on September 19, 2024 at 4:39 PM

    Hi Marcos,

    Thanks for your patience. After carefully checking, it is not possible to create a limit for how many people can select options using the Single Choice field. You can try to use the Gift Registry widget, where you can set a quantity per option and create a condition similar to my previous answer. Here's how to do it:

    1. In Form Builder, click on Add Elements.

    2. Click on Widgets and find Gift Registry.

    conditional logic not workign with appointment and single select Image 1 Screenshot 50

    3. Click on the wand icon on the Gift Registry widget to customize the options, quantity, and limits.

    conditional logic not workign with appointment and single select Image 2 Screenshot 61

    4. Create the similar Update/Calculate field condition I provided before. Check out the sample format below:

    conditional logic not workign with appointment and single select Image 3 Screenshot 72

    Here's the sample result:

    conditional logic not workign with appointment and single select Image 4 Screenshot 83

    Give it a try and let us know if you have any other questions.

Your Answer