set conditions on date field to calculate delivery date

  • wfhub
    Asked on October 14, 2021 at 6:59 AM

    b) When selecting Next day delivery option I only want customers to be able to select the next day from a calendar --ie Order before 1pm

    Monday = Tuesday delivey
    Tuesday = Wednesday delivery
    Wednesday = Thursday delivery
    Thursday = Friday delivery
    Friday = Monday Delivery

    c) When selecting 48 Hr delivery I want customers to see ; ie Order before 1pm
    Monday = Weds Delivery
    Tuesday = Thursday delivery
    Wednesday = Friday delivery
    Thursday = Monday delivery
    Friday = Tuesday Delivery

    Is there a way to do this please.

  • Tommaso_F
    Replied on October 14, 2021 at 7:09 AM

    Since you want to calculate the dates based on today, I think calculating using a separate date field would help. Please check the following demo Jotform to see if that works for you.


    https://form.jotform.com/212863480047961


    1634209698 61680fa26b929  Screenshot 10

    As you can see from the conditions set, if today is equal to Thursday, set delivery for tomorrow.

    1634209709 61680fada7634  Screenshot 21


    From here, edit the conditions accordingly to your need.

  • wfhub
    Replied on October 15, 2021 at 6:01 AM

    It seems like this formula will work for Next Day Delivery (£10 delivery charge) -however I have no idea how to insert that calculation into our form.

    But how will it work if the customer selects 48 hour delivery ( £5 delivery charge)


  • Tommaso_F
    Replied on October 15, 2021 at 7:06 AM

    Hello there,

    Simply copy my condition for the test form and apply it to your form fields.
    For the 48h delivery simply set {today}+2 into delivery field