How to increment the summary field with conditional rule?

  • Profile Image
    annahughes
    Asked on June 25, 2019 at 09:39 PM

    I have the same question as RWReynolds listed here.  I would like to add a value to the existing value of the summary field.  Is it possible to perform operations on the current value of the summary field?

    I would like to increment a summary value by 1 based on the selections made in single choice and multiple choice fields.  

    I have tried the following formulas and either get no results, incorrect results or javascript crashes on me. Please see form and screenshot attached. Any help would be appreciated.

         {summaryfield} + 1

         +=1

         +1



  • Profile Image
    Jed_C
    Answered on June 26, 2019 at 02:25 AM

    You can add First Question and Second Question in your form calculation widget.

    ex.

    1561530219add_field.png

    Final output

    1561530281increment.gif

    Please try that and let us know if you have further questions.

  • Profile Image
    annahughes
    Answered on June 26, 2019 at 01:13 PM

    I simplified the problem for the original post, and what you have works in that scenario. However, my scenario is more complicated.  I updated the form to be more representative.  The real form actually has 9 questions and 7 different "result" fields.

    Can you answer this question:

    Is it possible to perform operations on the current value of the summary field like in the image in the original post?

    Updated form is at the same link:

    https://form.jotform.com/91758213658163


  • Profile Image
    Alan_D
    Answered on June 26, 2019 at 03:39 PM

    Since we are unable to update a field with using its value, we should create some temporary fields. 156157781010.pngThis workaround may be complicated with 9 questions. Please clone and inspect my form. 
    Guide: How-to-Clone-an-Existing-Form-from-a-URL
    https://www.jotform.com/91766127237967 1561577949bandi123.gif

  • Profile Image
    annahughes
    Answered on June 26, 2019 at 04:25 PM

    Thanks for the response - I was hoping there was another way, but will go with this one.  Thanks again!