Skip to main content
1 of 2
kenbuja
  • 5.9k
  • 2
  • 19
  • 30

The only way I could see doing it is to add an argument in your function for the field name. You have to add it manually to each addvalue call

function addvalue(feat, field) {
    if (feat == 'Yes') {
        features[i++] = field;
    }
}

addvalue($feature.schoolCommGardenQuarter, "schoolCommGardenQuarter");
kenbuja
  • 5.9k
  • 2
  • 19
  • 30