This page contains descriptions of advanced techniques and examples for you to use when building CommCare Forms.
Display conditions, sometimes also called skip logic,are used to determine when a particular question should be shown to a user. While you can use the Form Builder to make basic display conditions, it is also possible to create very complex expressions.
For more information please visit the Display Conditions page
Validation Conditions are used to require that a user enters a certain type of response. A simple example could be requiring that a date be in the future; simple expressions can be added using the Form Builder Expression Builder. However it is also possible to write very complex expressions which require a specific structure. A complex example would be requiring a code which is 5 digits long and starts with a letter.
You can also put a question-specific validation message which tells the user why their response did not meet the validation condition.
Basic Validation Conditions - this page provides some basic examples of validation expressions, including the use of dates and numeric ranges.
Advanced Validation Conditions - this page provides examples and guidelines for complex validation expressions, such as requiring a specifically formatted number or series of letters.
One of the most powerful features of CommCare is the ability to do calculations within a form by working with a special type of question called a hidden value. If you are just getting started using hidden values we recommend that you try going through the Hidden Value Calculations Tutorial.
Some question types are a bit more complex than others! These pages provide examples and explain how to work with some of these question types.
This section has pages that you might want in order to build complex workflows or structures into your forms. Note that pages in this section may require knowledge of Case Management, a key feature of CommCare which is used to link forms together.
Create a Score Tally - if you have a series of questions and want to tally a "score" this page will provide some useful guidance
Displaying History of Changes - if tracking the changes in one property over time you may want to concatenate them over time in order to make it easy to refer to
Defining a Default Value - describes how to set a default value for a question
Available Functions - this page provides detailed descriptions and examples of all the possible CommCare Functions that you can use when making calculations or other expressions. Common examples of functions include: today(), string-length(), now(), and date() - these are very useful for manipulating data.
Show the username in the case list/details - this technique is important if you want to be able to show the username of the person who created or last interacted with a case in the case list or case details. This is primarily useful in applications that use Case Management.
Display an Answer to a Previous Question - this page explains how to show the display a calculation of another question in the label text of another question.
On July 5, 2016, we released an update to the application builder that changes the way you reference form questions. To read more about the new references, see this overview