Insert a future date base don previous form answer

  • dmartin33
    Asked on January 28, 2022 at 4:50 PM

    Good afternoon! I'm trying to edit a form so that I can tell team members when they are cleared to return to work after reporting their covid test results.

    Ideally, what I'd like to do is add 5 days (per CDC guidelines) to the date picker entry they entered on an earlier page for the date of their covid test. I'd like to show that on the final submission page ~ I was trying to insert it into a long text form element but can't seem to hit the right string?

    {formOf88} gets me the test date inserted, but trying other things to add 5 days to it isn't working...? Thank you!

  • Samuel_Ray Jotform Support
    Replied on January 28, 2022 at 9:39 PM

    Hi there,

    What you need to do is to use a form calculation tool instead of typing the calculation in the paragraph field. That's because the paragraph field doesn't have any calculation capability.

    You can use the form calculation tool and use the date string function to calculate the date. Then you can just show the form calculation tool in your paragraph at the bottom. Here's how the formula looks like:

    1643423847 61f4a867ee1ca  Screenshot 10

    And here's what the form looks like when you implement this:

    1643423887 61f4a88f183bc  Screenshot 21

    You can also check my cloned form here to test it or even clone it yourself: https://form.jotform.com/220278683395971

    Here's a guide for your reference: How to Clone an Existing Form From a URL

    I hope this information helps. If you need further assistance, please don't hesitate to reach back out to us. Thank you!