Calculations within a form

  • rtolmach
    Asked on July 5, 2022 at 6:05 PM


    Our form asks interns to submit their morning hours and their afternoon hours.

    How do we create a field that adds those together? That would then let us use a conditional to display a message if the total hours they submit is too many or too few.

    I looked at the Form Calculation field, and there is no explanation of how it works (a mystery!) nor any link to an article explaining it.

    Thanks

    Robert

  • Rhina JotForm Support
    Replied on July 5, 2022 at 11:33 PM

    Hi rtolmach!

    Thanks for reaching out to Jotform Support.

    You can use the following formula for your form:

    1657078043 62c5011b8ecaa Screen Shot 202 Screenshot 10

    This is how it would work:

    1657077998 62c500ee7abf7 Screen Shot 202 Screenshot 21

    See cloned form below:

    https://form.jotform.com/221858399362469

    You can clone this form and edit to your preference.

    How to clone form

    To know more about the time calculations, form and math functions see the links below:

    https://www.jotform.com/help/443-mastering-date-and-time-calculation/

    https://www.jotform.com/help/267-form-calculation-math-function-reference/

    Please try this and let us know how it goes.

    Thanks rtolmach!


  • rtolmach
    Replied on July 6, 2022 at 12:05 PM

    Thanks. Will try it when I have a few minutes today.


    Please tell your product team:

    The Form Calculation field has no explanation of how it works, nor any link to an article explaining it.

    We should not have to write to support to ask things like this.

  • Fahad JotForm Support
    Replied on July 6, 2022 at 1:23 PM

    Hi rtolmach,

    Apologies for the inconvenience. We have How tit works help guide for the Form Calculation field. Please check the guide about How to Perform Form Calculation Using a Widget? You can check our help user guide page and search for your relevant feature help guide.

    Let us know if there’s anything else we can help you with.