Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • 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:

Image RemovedImage Added

  • When you see the green check mark in the box you can release. CommCare will then translate that into a blue question Reference:

Image RemovedImage Added

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:

Image RemovedImage Added

  • Release and you will be able to see the full "XPath Expression":

Image RemovedImage Added

  • 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:

Image RemovedImage Added

Congratulations, you have successfully done your first Hidden Value calculation!

...