Simplify App Building in CommCare with Easy References

We are excited to announce Easy References, an update that will help you unleash the power of case management in your application, and save you time in the app building process.
This update is two-fold: (1) there will be a new look and feel for question references in form logic, and (2) referencing case properties in a form will be much faster and easier. Find more details on these two updates below.
What’s new?
1. A new look for question references
Drag-and-drop question references have a new, simplified look. Hovering over the reference will show details about the question, including the question id and label.
On hover, you see a shortcut reference: “#form/favorite_color.” To create an easy reference, you can either drag and drop from the “Questions” tree on the left, or use hashtag to type a shortcut reference. Try typing “#” in a display condition – you will see a list of all the questions in your form to choose from.
In fact, you can just type # followed by the question id or some text in the question label. The dropdown will show all questions whose id or label matches what you have typed in.
For those familiar with the /data/questionid used in older CommCare apps, this update replaces /data/ with #form.
2. Easy References for case properties in your application
Easy references aren’t limited to questions in the form – you can also create easy references to case properties. In new applications, you will see a “Case Properties” window on the bottom left of the form builder (as seen below).
Previously, to reference case properties, you needed to follow a complicated, multi-step process. In new applications, you can simply drag and drop case properties from the Case Properties window, just like you do with form questions. You can also use the hashtag shortcut to reference case properties by typing “#” and the name of the case property – just like with form questions. We have removed the “loading” section from the case management tab on the form settings page. You no longer need it!
I’m used to the old way of “loading” case properties, what does this mean for me?
Easy References will simplify your app building workflow and save you time! This new feature will minimize your process from four step to two. Let’s go through an example…
I have an app using case management. In the Registration form, I ask for the respondent’s favorite color.
In the Followup form, I want to ask a question specific to the people whose favorite color is “blue.”
I need to add logic to this question “Is blue still your favorite color,” so that it only appears if the respondent answered “blue” during registration. Previously, this was your process:
- You went to the settings page for the Registration form and saved “favorite_color” as a case property.
- You opened the follow-up form in the form builder and added a hidden value “favorite_color”
- You went to the settings page for the follow-up form and loaded the case property “favorite_color” into the hidden value “favorite_color”
- You opened the follow-up form in the form builder, and dragged the hidden value “favorite_color” into the display condition for “Is blue still your favorite color”
Now, with Easy References, you can achieve the same results in two steps:
- Go to the settings page for the Registration form and save “favorite_color” as a case property. Note: this is the same as the old process .
2. Open the follow-up form in the form builder and drag “favorite_color” from the Case Properties window into the display condition for “Is blue still your favorite color.”. Or use the #favorite_color shortcut to create the Easy Reference!
For more information on how Easy References change the workflows you are used to, see our FAQ.
Share
Tags
Similar Articles
Dimagi to Launch Monkeypox Case Management Solution to Support US Public Health Departments
Digital template application powered by CommCare for investigating monkeypox cases and tracing contacts to be offered free for 6 months to control outbreaks
Product Updates
September 7, 2022
Mitigating the Impact of COVID-19 on Global Vaccination Efforts
Disruptions in routine immunization due to COVID-19 can lead to secondary health crises, especially in children. That's why we've expanded on the platform used to provide more than 1 million COVID-19 vaccines to include routine immunization, as well.
Product Updates
October 11, 2021
CommCare Precision Tasking Framework: A Prioritized Tasking Solution for Supervisors and Health Workers
Dimagi has created a new Prioritized Tasking Framework that aims to help CHWs focus on service delivery, enable data-driven decision making and provide patients access to better care.
Product Updates
September 6, 2021