Add a variable
- Open Settings → Calculator.
- Add a variable, like total. Numbers start at 0 unless you set a starting value. Text variables start empty.
A variable keeps a running result as people move through the form. Its final value is saved with each response.
Change it as people answer
- Open a question and find its Calculator section.
- Add a step: add, subtract, multiply, divide or set, using a number, the answer itself, the answer's points or another variable.
- Turn on “Only sometimes” to run a step only when an answer matches.
Steps run in order, and only for questions people actually reach. For a quote, set total to the number of people, then multiply it by the chosen package's points.
Points for each answer
On choice questions, give each answer some points. A step like “Add this answer's points to total” adds them up. For checkboxes, every ticked answer counts.
Score a quiz
- Turn on “Score this as a quiz” in Settings → Calculator.
- On each choice question, tick the right answer and, if you like, how many points it's worth.
Every right answer adds to the score. For checkboxes, people need to tick all the right answers and nothing else. {{score_max}} is the most points anyone could get.
Show the result
Write {{total}} in an ending, a later question or its description: “Your quote comes to ${{total}}” or “You scored {{score}} out of {{score_max}}”.
Results also appear on each response, in your CSV download, the API and webhooks.
Use a result in logic
Variables show up in the logic menus as “Variable: total”. Jump to a “You passed” ending when the score is at least 8, or only ask about delivery when the total is more than 100.