Display Logic, also known as Skip Logic, is used to display questions based on previous answers or specific logic. This page demonstrates how to set up Display Logic in your CommCare application.

Display when there is or is not an answer in a question:

Display based on previous answers:

To show a question if a previous question was answered "yes" this time OR last time.  This is common for things like Tetanus (TT) injections and Antenatal Care visits.  When the same form is used across multiple visits, you want to skip the first TT question and only ask about the 2nd tetanus if the beneficiary answered "yes" for TT1 at any time (this visit or any previous visit).  

Displaying based on a range:

Displaying based on a date:

You can also write display logic for questions you want to appear at a certain time of year using format-date. For example, if you'd like a question to appear only in the month of August, you'd put format-date(date(today()), '%n') = 8 in the display condition. See format-date on the functions page.