Can I reference the case_id of the case I'm trying to create in a registration form? When I use instance('commcaresession')/session/data/case_id in my registration form I get an error.
Load case_id into a registration form
commcare
Related Topic
- How to load a case_id into a form
- Module filter with multiple expressions
- Does archiving a registration form in CommCare affect the the other forms submitted to that case
- How to compute the time spent in a form
- What is the syntax to reference form data in a model iteration query
- CommCare – How to Reference Mobile Worker’s Username in Case List Filter
- How to get user’s location ID for use in form display logic in CommCare
- In CommCare, can you create default values in advanced modules
Best Answer
Unfortunately, HQ injects all of the Case XML code into the form later, so there's no "clean" way of referencing what will become the caseID most of the time