Tutorial 21 · Advanced logic
Weighted numeric score
Calculate a weighted total from numeric ratings. In this example, product quality counts twice as much as service.
1. Prepare the survey
Open a practice survey from Home and click Edit. Add these pages and questions in the order shown. Click a question type in the builder palette, then select the question to edit its label and choices. Use Add Page for later pages.
| Page | Question | Type and setup |
|---|---|---|
| Weighted ratings | Product rating | Numeric rating (NPS) · Optional initially · Use the 0–10 scale |
| Weighted ratings | Service rating | Numeric rating (NPS) · Optional initially · Use the 0–10 scale |
| Score and feedback | Your weighted total is 0. Any comments? | Text box · Optional initially |
Follow along in a practice survey in the VividSurvey app. Screenshots illustrate each step.
2. Configure the logic
Create the weighted score
Choose Calculate a score. Click Add score and set Score name to Weighted satisfaction.
Add the first term
Click Add score question. Select Product rating and set Multiply numeric answer by to 2.
Add the second term
Click Add score question again. Select Service rating and set Multiply numeric answer by to 1. The total is Product rating × 2 + Service rating × 1.
Review and save the calculation
Click Next, inspect both terms and Save logic.
Show the result in a later question
Choose Insert a previous answer. Select Weighted satisfaction as the source, then the question on Score and feedback as the target. Set Text before the answer to Your weighted total is followed by a space; set Text after the answer to . Any comments? and fallback to 0. Review and Save logic, then publish.
3. Review the logic flow
Read the final flow before saving. For conditional rules, YES means the condition matches and NO means it does not. An unanswered source can leave the rule waiting. Use Try answers when it is available, or Back to adjust the setup. View full survey flow provides the surrounding page order and saved rules.
4. Save and publish
Save the reviewed logic
On the final wizard step, click Save logic. Your changes join the survey draft. If the tutorial creates more than one rule or setting, complete and save every part before publishing.
Confirm the draft is saved
Close Logic. Wait for the builder’s save/sync status to complete. You can reopen Logic to check the saved rule or setting. Save logic does not by itself update the public survey.
Publish the survey
Click Publish in the builder, then Publish Now in the confirmation. Use the public link to test the published survey. After later edits, publish again before checking the live result.
Test in a fresh respondent tab
Start with a fresh public survey tab. If you already had an older published version open, reload and start a new response. Use a practice survey for test submissions.
5. Test the respondent experience
Run both the matching and alternative cases. Change answers and revisit earlier pages where the test asks you to, rather than testing only one path.
| Try this | Expected result |
|---|---|
| Product 4 and Service 3 | The later question displays a total of 11. |
| Product 0 and Service 3 | The total is 3; zero is treated as a valid rating. |
| Back, change Product to 5, then Next | The displayed total becomes 13. |
Common mistakes and useful limits
- Use numeric rating questions for weighted numeric terms. Choice questions use per-choice points instead.
- A displayed score is calculated from eligible answers and is recalculated by the server when submitted.
Current limits
- Current calculations support numeric weighted sums and per-choice points. General formulas, division and totals across repeat iterations are future features.