Scoring - List Selector Field
Overview
FastField gives you the ability to score lists (Lookup Lists or Global Lists) in your forms. Assign a score/weight to each item in a list. After a user chooses items from multiple lists, the system can then automatically calculate the total score.
For example, you could have multiple prompts on an inspection form that feature a dropdown menu for a user to select Good, Neutral, or Bad. By assigning each item a score (e.g., Good = 1, Neutral = 0, Bad = -1), an overall inspection score could be calculated for quick and easy evaluation.
Scoring items in a list can be done using the Calculation field and a little bit of JavaScript.
*Note: This article assumes that you have a basic understanding of the FastField software, how to add fields, how to save your forms, and how to view them on your device. For any help with these steps, refer to our guide on how to set up and access a form.
How to Add Scoring to Your Lists:
- Add a List field to your form in the Form Builder and select Add List Items.
- Add list selection names and values to your form.
- In the example below we added Good, Neutral, Bad as list selections.
- Assign a score for each list item.
- In the example below, we assigned scores of 1, 0, and -1. You can assign whatever weight you desire to your scores.
- Repeat these steps in order to have multiple lists to score.
#$listpicker_1$ + #$listpicker_2$ + #$listpicker_3$
5. Add a Calculation field to your form and place the following code:
#$listpicker_1$ + #$listpicker_2$ + #$listpicker_3$
The # sign signifies to the computed label to use the designated score instead of the value.
6. Make sure to substitute the $fieldkey$'s in the example code, with your own form's $fieldkey$'s.
-
- The code below is what you will be putting into your computed label:
The result is a nice scoring system using the list picker field. In the app, I selected "Bad" with a value of "-1" for each list. It added them all together and gave me my result of "-3"