...
- Click on "edit" next to Calculate Condition
- Click and hold on the question "How many living boys?" in the Question Tree and drag it into the Edit Expression (Advanced) box:
- When you see the green check mark in the box you can release. CommCare will then translate that into a blue question Reference:
You can hover your mouse over the reference and you can see details about the question.
- Type "+" next to the living_boys reference in the Expression Editor (Advanced ) box to indicate you want to add the value of that question
- Click and hold on "How many living girls?" in the Question Tree and drag it over to the box until you see the green check mark:
- Release and you will be able to see the full "XPath Expression":
- You can now click "save" to store the expression and make sure you don't have any errors.
This is a simple expression so you should not see any error messages. After clicking "save" you should see your expression here:
Congratulations, you have successfully done your first Hidden Value calculation!
...