Add lines and Calculates

  • crossland
    Asked on March 11, 2020 at 12:46 PM

    Trying to create a section where the end user is able to input stuff that was stolen.  So my first field would be "Item Description", the next field would be "Item Value" then I want a button that would say "add another item", then this would continue until all the items that were stolen would be accounted for in the form.  But I would also like one field calculating the total cost of all the "Item Value's" that have been entered.  I'm struggling creating this.  

    thanks,

  • Kevin Support Team Lead
    Replied on March 11, 2020 at 2:53 PM

    We have widgets that allow to add as many rows as needed, but they will not work with calculations. I think of two possible ways to achieve this: 

    1. Using an input table and performing the calculations there, you will find the input table element on the add form element section and under the survey elements tab. This guide will help you performing calculations based on this widget: https://www.jotform.com/help/343-How-to-Perform-Form-Calculation-in-the-Input-Table-Field

    2. You may add the set of fields and then conditionally show them, this way you can also perform calculations. 

    This guide will help you showing multiple fields at the same time: https://www.jotform.com/help/196-Hide-or-Show-Multiple-Fields-at-Once 

    This guide will help you with the calculations: https://www.jotform.com/help/259-How-to-Perform-Form-Calculation-Using-a-Widget 

    I hope this helps.