Configurable list - how to do calculations

  • scottlannie
    Asked on March 30, 2016 at 10:10 AM

    I know that calculations can't be done currently in a configurable list, but is there a way to inject some code into the form that will enable this functionality?

     

    Thanks

    Scott

  • Boris
    Replied on March 30, 2016 at 12:22 PM

    Unfortunately not - you can't inject any code into the form that would allow configurable list to have calculations. Form calculations can only be performed either with Form Calculation fields, or by using the insert/calculate conditional rules on regular form fields:

    https://www.jotform.com/help/259-How-to-perform-calculation-in-the-form

    https://www.jotform.com/help/57-Smart-Forms-Using-Conditional-Logic

    As the Configurable List widget is loaded inside its own iFrame, using source code of your form and injecting custom code there wouldn't help. This is because we can't simply inject a piece of code into the form that would allow calculations to be performed inside the separate iFrame of the widget itself - the feature would have to be implemented inside the widget.

    Depending on your needs, it would be best to perform the calculations directly with regular form fields rather than inside the Configurable List widget, or to look at one of our widgets that can perform calculations - such as the Spreadsheet widget:

    http://widgets.jotform.com/widget/spreadsheet

    Please let us know if there is anything else we can assist you with, and we will be happy to help.

  • scottlannie
    Replied on March 31, 2016 at 7:33 AM

    Thank you Boris, for explanations, and other info.

    Many thanks

    Scott