Date Entry calculation for future dates

  • Shaun_shaun
    Asked on November 21, 2021 at 11:27 PM

    When a user enters a date, I would like the next field to automatically calculate the date + 7 days, date + 14 days. For eg: If the user selects today's date as January 1, 2021, the next field (titled as "7 days from now") should say January 8, 2021, the next field (titled as "14 days from now") should say January 15, 2021. Is it possible to have this logic in built into Jotform fields?

  • burakdemirtas JotForm Developer
    Replied on November 22, 2021 at 1:23 AM

    Hi,

    You can use Conditions for that. Go to the Settings -> Conditions page and add Update / Calculate Field. 

    o4h7eGWmcIMF7YLOMqM gMDfgMNlK2rkgusaX0e  Screenshot 10

    Then, you can add some conditions for your date fields on the form like that:

    BzjI1dIkDY9gByFwvEJhQFLcJqyS2ugDHATqcvMZ Screenshot 21

    Finally, you should add some conditions like that:

     rseDBboXXhDCRJ3SGU6UKjAVcRn2se2gzbRAul8 Screenshot 32

    Date2 and Date3 fields will be calculated automatically according to the Date1 entry.

    If you require any further assistance feel free to let us know.

    Thanks.