Category Calculation
We're trying to determine the calculation for a category field. This is part of the formula we are currently using and its functioning correctly except for the fact, we wanted to have the ability to allow the user to select N/A in the category field. If N/A is selected, we want it to be treated as null. Any ideas?
var ie = new Array()
ie[1] = Students are supervised from drop-off until pick up
.....
ie = ie.filter(function(element){
return element || element === 0 ? true : false;
})
var result = null;
if (ie.length) {
var sum = ie.reduce(function(a, b){return a + b})
result =
(((Students are supervised from drop-off until pick up == "Yes" ? 1 : 0) + ....
Please sign in to leave a comment.
Comments
1 comment