In addition to Scoring and Custom Pricing Rules we also offer a Calculation question type which allows you to use simple functions and operators to make calculations based on a user's answers.
Using Calculations, you can work with a user's responses to calculate and optionally display a value. Calculations questions included detailed help documentation and examples within the configuration page for the question:
To configure a Calculation question:
- Make sure you have all the fields you want to work with added to the form.
- Create a Calculation question and open the configuration menu.
- Write out the code for your calculation referring to the built in documentation. Use actual values at first to confirm your calculation works as expected
4. Then replace the actual values with answer piping tags as required.
You calculations will be included in the submission.
The above example calculates an average score for a restaurant review form that looks like this:
Check out some more examples below.
Calculate appoinment duration: