not let the user re-edit the form if 2 hours didnt pass

  • flashbackproductions
    Asked on June 6, 2020 at 6:52 PM


    i dont want the user will re-edit the form again in a short time after his submmision.

    he can edit the form as long as he wants, but after submmition, i need  a field to populated with a time and a date, and when the user comes back, the form will  check if he submmited the form at lest 2 hours (for exsample) ago.
    if not, he will redirected to a page in the form that says "you need at lest 2 hours between 2 editings"

    the important part with this, is how i check the time and make calculations

    thank you

  • Vanessa_T
    Replied on June 6, 2020 at 11:37 PM

    Please allow me some time to make some tests and will get back to you afterwards.

  • Vanessa_T
    Replied on June 7, 2020 at 12:14 AM

    To calculate time difference, you just need to add time fields, both of which should be set to have the current time by default and marked as readonly. Then use a Form Calculation widget to calculate the difference.

    How-to-Perform-Form-Calculation-Using-a-Widget

    not let the user re edit the form if 2 hours didnt pass Image 10

    As for your specific needs to only allow submission edits if it has been 2 hours apart from the last edit, unfortunately, I could only do that for the first edit. So what will happen is, user submits the form, then on their first edit, the edit time will be populated with current time and compared to the submitted time.

    You can view the demo form here: https://form.jotform.com/201540810473042

    For demo purposes, the edit time is editable so you can see how it will look if less than or more than 2 hours have lapsed from the submitted time.