How do you reference the user_id of the user in a form in CommCare?
How to reference the user_id in a CommCare form
commcare
Related Topic
- Expected behavior when changing a CommCare form’s name under Form Properties
- Completed forms stay on phone even if CommCare sense is enabled
- How to reference name and surname of a user in CommCare
- 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
- Way to reassign form data that is submitted to the wrong case in CommCare
- CommCare – How to Reference Mobile Worker’s Username in Case List Filter
- How to trigger CommCare to create user cases
Best Answer
The syntax for referencing the user_id is
/data/meta/userID
The syntax for referencing the username is
/data/meta/username