FAQ

How to "score" user's answers

October 7, 2021

You can build an app that asks the end-user a series of a questions and then "scores" their response. This allows you to conditionally perform actions based on their score, e.g. if the end-user's score is less than or equal to 50, send an email, etc.

Part 1: Every response needs a numeric value

In order to "score" the end-user's responses, each response must have a numeric value.

Number-type questions (number (decimal), number (whole), or money questions) automatically produce responses that have numeric values.

Radio button or dropdown questions can be edited so that the responses have numeric values. For these types of questions, you can edit the multiple-choice option values. For example, here is a radio button question where the option labels are text (Green, Blue, and Red) and the option values are numbers (1, 5, and 10):

But what about other types of questions? e.g. checkboxes or Yes/No. How do you make a "Yes" response equal 10 and a "No" response equal 5? The answer: a conditional block.

Here is a conditional block that is converting a Yes/No question into a numeric value:

You can use a Conditional Block to convert all manner of questions into numeric values.

Part 2: Add up the numeric values

Whether your questions create numeric values or you convert questions into numeric values with conditional blocks, your next step is to add up all these values to arrive at a total score. You can do this with an expression block:

You do not have to simply add up all the values; you can perform all manner of calculations using any math operator (e.g. add, subtract, multiply, etc).

All done!

You now have a total score you can use to trigger any other action, including a payment, email, or document automation.

Hire an Afterpattern expert

Go from idea to launch in weeks.

View services