Creation of online testing with calculation of the sum of points and withdrawal of different results.

Good afternoon.

There is often a question of how to organize an online survey or testing, where the user, having sent the form, will get the result, depending on what answers he chose. Each answer has a certain grade/point. The user will get a corresponding result if he scores a certain amount of points, depending on the grading.

In this article we want to tell you how to create an online test with a score calculation and the output of the results, depending on the number of points gained. For this purpose, we will create an improvised form of testing, where we will consider such issues:

  1. Creating and filling out the testing form;
  2. Setting up logical rules for branching the form;
  3. Setting up the formula for calculating the sum of points;
  4. Configuring the output of test results.

As an example, we will develop a form to assess the quality of car wash. To do this, we will create a multi-page form, where using logical rules to configure the step-by-step output of questions, the transition between pages, the calculation of the sum of points and the output of test results.

Create an online test form

First, let's create a form, To do this, click on the button to create a form in your personal cabinet:

Calculation of the sum of points 1

Select "Blank template" from the list and "Create New Form":

Calculation of the sum of points 2

Enter a form name and click "Save":

Calculation of the sum of points 3

Let's name our form "Evaluate the work of our carwash". Let's make a form of several pages, with several switches and checkboxes, where when you select a specific answer will be displayed the necessary element, according to the rules of logic. Add "Switches" to the first page by dragging the item from the main fields or just clicking on the item:

Calculation of the sum of points 4

We will also make a form of several pages by clicking the "Add Page" icon:

Calculation of the sum of points 5

Similarly, on the added page, we will add the necessary elements in the form of checkboxes (multiple choice) for our testing:

Calculation of the sum of points 6

To customize the item names and answer choices, click edit:

Calculation of the sum of points 7

On the fourth page, let's add "Field for entering the email address" и "Full name", which we will place in the section, for output in one line:

Calculation of the sum of points 8

Also on this page we will add the “Formula” element from extra fields and the “Hidden field” element from additional fields.

In the “Parametrs of pages” settings you can specify the page name:

Calculation of the sum of points 9

You can also customize the display of pages here: as tabs and filling indicators, or simply hide them:

Calculation of the sum of points 10

Adjustment of logical branching

Then let's go to “Logic” section to add the necessary rules for the form fields. To do this, click the "Add a rule" button:

Calculation of the sum of points 11

Let's add a rule for the elements on the first page:

Calculation of the sum of points 12

Let's choose the condition: if "You have washed the car" and the answer is "Yes", then show the element "How often do you come to the car wash":

Calculation of the sum of points 13

That is, on the first page the testing will start with the first question, and the rest will appear after filling in. Now let's add the rule for the second question "How often do you come to the sink", which went on the answer line "Yes" from the first question.

Choose the condition that if "How often you go to the sink", the first answer choice "Once a week", then show "Which sink was ordered". But this way we have several variants of the answer, and if we choose them we should go to the question "Which washing was ordered" all the same, then we should connect the condition with the logical "OR". It's also easier to choose any variant in the condition:

Calculation of the sum of points 14

Click as shown in the screenshot and select any option:

Calculation of the sum of points 15

As a result, after adding two rules for the first page, the user, having chosen the answer "Yes" to the first question, will move on to the second question, where any answer choice will open the next question. For the second page, similarly, let's add a logical rule for the "How do you rate salon cleaning" question.

Calculation of the sum of points 16

Calculation of the sum of points 17

In the end, for two pages, the set of rules will have the form:

Calculation of the sum of points 18

On page three, you added 3 questions consisting of the Yes or No answer choice switches.

Calculation of the sum of points 19

We are not going to make any logical answers here, that is when one of these answer choices is made, the user will simply see the next question on this page.

Calculation of the sum of points 20

Click "Add condition":

Calculation of the sum of points 21

Choose the logical action "OR" and choose the answer choice "No", or you can replace these conditions with any value:

Calculation of the sum of points 22

On the fifth page we have placed elements "Text area", where the user can leave wishes and suggestions, and "Text" with words of gratitude. On the logic tab, we will add logical rules for the first question "You've washed the car" from the first page, when you choose "No", then show the element "if not":

Calculation of the sum of points 23

Another rule is that when a user selects any answer choice in the "if not" question, they will go straight to the fifth page of the form with the possibility to leave their wishes and suggestions:

Calculation of the sum of points 24

Setting up the formula for calculating the sum of points

On the fourth page we have arranged two elements: “Formula” and ”Hidden field”, which we will use to calculate the result and to transmit the resulting value, respectively. Now let's go to the settings of the "Formula" element, which we added to the fourth page of the form. The "Formula" element will be used to calculate the points, depending on the answer choices in the given questions. To do so, click the edit icon for the element:

Calculation of the sum of points 25

In order for the user under test not to have access to the "Formula" field, which we will use for the calculation, you must hide this element. In the edit mode of the element in the "CSS class name" field, write the value "hide":

Calculation of the sum of points 26

Now let's move on to the very configuration of the calculation formula. To do this, click the grey button "Setting up a formula" and the formula editor will open in front of you. Click "Add element" on the right:

Calculation of the sum of points 27

We'll select the first item from the list, "You washed the car":

Calculation of the sum of points 28

The first element that participates in the calculation of points will appear in the formula editor. We will summarize all the values, so we will add all the elements involved in the calculation in the same way:

Calculation of the sum of points 29

After all the elements have been added, press the gear to the right of the element:

Calculation of the sum of points 30

In the first question we have the answers "Yes" or "No", we will assign points 1 and 0:

Calculation of the sum of points 31

Next, assign points for the answers in the other elements participating in the calculation formula:

Calculation of the sum of points 32

Configuring the output of test results

Having added the necessary points to the elements of the calculation formula, let's go to the "Logic" section, where we will add logical rules for the hidden field. We will pass to this field the value that we will describe in the logical rules. Pre-calculate the points in the formula and decide that the range of values will correspond to the three results:

  1. Unsatisfactory — range 0 - 15 points;
  2. Satisfactory — the range of 16 - 24 points;
  3. Positive — a range of 25 or more points.

Now let's implement, using logic, the transfer of these results in a hidden field. If the value of the "Formula" element is greater than "0", we will select it:

Calculation of the sum of points 33

Then set the value in the element "Hidden field" - "Unsatisfactory", and add the condition through the logical "AND":

Calculation of the sum of points 34

That the value of the formula is less than "16":

Calculation of the sum of points 35

That is, we get the first range of values 0-15:

Calculation of the sum of points 36

Similarly, we will add 2 more rules for the remaining results:

Calculation of the sum of points 37

Now let's organize the output of the hidden field values on the Thanksgiving page. Let's go to the main form settings:

Calculation of the sum of points 38

Choose in "Action on successful completion of the form" - show the text on a separate page:

Calculation of the sum of points 39

Below, we can change the text that we need, for example, "Thank you for assessing the work of our sink as":

Calculation of the sum of points 40

And after the words, we'll just print out the result of our survey. We will use the “macro” of the hidden field in the list of variables. To find the macro, click the {...} icon and in the window that opens click the value of the hidden field on the left:

Calculation of the sum of points 41

We receive the previously specified text with the value of the hidden field, in which, using the logic, the test result corresponding to the specified range of points will be substituted:

Calculation of the sum of points 42

By clicking the form view icon, you can view the customized form:

Calculation of the sum of points 43

Where in the text, after sending the form will be displayed the result of the survey/test, in our case - as assessed by customers car wash.

Calculation of the sum of points 44

In the "Design theme" section, you can choose one of the design themes or edit it to your liking.

If necessary, you can also configure the test results to be sent to an email user. To do this you need to activate "E-mail notifications for the user (answering machine)"in the form settings, where you can also use the hidden field macro with the test result in the notification template. In addition, you can configure separate logical rules for email notifications and there you can configure separate templates with the results depending on the amount of points.

We hope you find this material useful. Leave your comments in the form below!

Comments
Ready-made templates of web forms
Gold

Calculate delivery cost

Answer a few simple questions and get a rough estimate of the shipping cost of your shipment. Details
Gold

Calculate the cost of washing your car and get a discount.

With this template in the form of a receipt, you can attract customers for service in your car wash. Template can be edited, added and removed fields Details
Platinum

Who kind of an innovator are you?

A playful testing template will help find out your user to what extent he or she is an innovator in the work process Details
Platinum

Selection of auto parts

Template in the form of a request, where the user can select a car brand, year of manufacture, specify data from the technical data sheet, contact details. You can edit the template to suit your needs. Details

We use cookies to make it easier for you to use the website. By using this page, you agree to our cookie policy.