Looking to add values collected earlier in a survey? Strictly speaking, performing mathematic functions in a survey requires custom scripting; however, if you have a few values that you wish to add, you can leverage our Continuous Sum question to achieve this.
Step 1: Add Continuous Sum Question
To set this up, add a Continuous Sum question to a page that follows the questions in the survey in which the values you wish to sum are collected.
Because we will be hiding this question from displaying to survey respondents you can enter whatever works for you internally as the question title.
Step 2: Add Options and Insert Merge Codes
Next, you'll need an option for each field you wish to include in the sum. In the Option field, again, you can enter whatever makes sense to you internally as this question will not display to respondents when we are finished.
In the Default Value field enter the merge code for each question's entered value you wish to include in the sum.
Not sure how to find the merge codes for your questions? The easiest way to find the merge code for each of your questions is to use the merge code helper available in the question title field. Here's a video demo:
Step 3: Test the Sum is Correct
Now, you'll want to record a couple of responses using Preview to confirm that the sum is correct.
Step 4: Hiding the Continuous Sum Question from Respondents
Once you've confirmed that the sum is working correctly you are ready to hide the question from your respondents. Edit the Continuous Sum question and go to the Layout tab and enter the following in the CSS Class Name field: sg-hide.
Need to use this value elsewhere in the survey? There isn't a built in way to achieve this but we have a workaround script.