--- title: "Scoring for the Yes/No/NA (three state) field" slug: "scoring-yes-no-na-three-state-field" updated: 2026-09-28T06:23:24Z published: 2026-09-28T06:23:24Z canonical: "help.quickbase.com/scoring-yes-no-na-three-state-field" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.quickbase.com/llms.txt > Use this file to discover all available pages before exploring further. # Scoring for the Yes/No/NA (three state) field ## Overview You can add scoring to **Yes/No/NA** (three-state) selector fields using **Calculation** fields and a little bit of **JavaScript**. Assigning different weights to Yes/No/NA responses (e.g., Yes = 2, No = 1, NA = 0) can allow you to view total scores for surveys, inspections, safety checks, and other forms. > [!NOTE] > **Note** > > This article assumes that you have a basic understanding of the FastField software and how to add fields, save your forms, and view them on your device. ## Example Using the following code will add all of the **Yes** selections in the form and display it in the computed label. If the user selects **Yes, No, No,** then the computed label will display **1**. You can add whatever weight to the ***Yes*** selection that you would like. For example: If you select **Yes, Yes, No,** then the calculation (computed label) will display **4** because you've given the **Yes** a weight of **2** instead of **1**. ```plaintext var score = 0; if ($tri_1$ == 1) { score += 1; } if($tri_2$ == 1) { score += 1; } if ($tri_3$ == 1) { score += 1; } return score; ``` Using the following code will add all of the ***Yes*** selections in the form and display it in the computed label. If the user selects ***Yes, No, No*,** then the computed label will display **1**. You can add whatever weight to the ***Yes*** selection that you would like. For example: ```plaintext var score = 0; if ($tri_1$ == 1) { score += 2 } if($tri_2$ == 1) { score += 2 } if ($tri_3$ == 1) { score += 2 } return score; ``` If you select ***Yes, Yes, No,*** then the calculation (computed label) will display **4** because you've given the *Yes* a weight of 2 instead of 1. ![Calculation formula example giving Yes a weight of 2](https://cdn.document360.io/dd260e4e-10bb-4b66-8fb3-5504c272b904/Images/Documentation/2017-11-17_1034.png?sv=2026-02-06&spr=https&st=2026-10-30T07%3A02%3A43Z&se=2026-10-30T08%3A02%3A43Z&sr=c&sp=r&sig=U81osYVoboPz9IfoD9NILksOgHchvHE6GDV7R5h5bXI%3D) In the example below, we selected **all *Yes*** with a weight of 1. The total score equals **3**. ![Three State field example with all Yes selections totaling a score of 3](https://cdn.document360.io/dd260e4e-10bb-4b66-8fb3-5504c272b904/Images/Documentation/ThreeStateField3.png?sv=2026-02-06&spr=https&st=2026-10-30T07%3A02%3A43Z&se=2026-10-30T08%3A02%3A43Z&sr=c&sp=r&sig=U81osYVoboPz9IfoD9NILksOgHchvHE6GDV7R5h5bXI%3D)