1

I've setup case management in my application. Now I would like to load the selected case's id into the Calculate Condition of one of my hidden variables. How do I do that?

1 Answer 1

3

You can use the session instance path to get the currently selected case's case_id (see CommCare Session Instance help page):

instance('commcaresession')/session/data/case_id

The link above also describes the syntax to load other session user or device data.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.