I have a calculation type question (ccTotalTrees) inside a S123 repeatable that returns a value of 1 or an integer from another response (crUninfestedTrees, which cannot be left blank) depending on the survey type.
For one user the calculation is not always executing, when it doesn't the field value is set to null. It's only happening for one user out of about 60 and I cannot figure out why. They are using the same, current, S123 version as other users.
The calculation mode is set to always.
Just wondering if anyone has any ideas, as I am stumped. I was wondering if the problem was caused by them switching survey types from infested to uninfested before submitting.
Edited: there is no relevancy on ccInfestedTrees
| type | name | relevant | calculation |
| select_one SurveyType | prSurveyType | | |
| begin repeat | rsTrees | | |
| integer | crUninfestedTrees | ${prSurveyType}='uninfested' | |
calculate | ccInfestedTrees | | if(selected(${prSurveyType},'infested'),1,0) |
| calculate | ccTotalTrees | | if(selected(${prSurveyType},'infested'),1,${crUninfestedTrees}) |
| end repeat | rsTrees | | |