Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

CommCare allows you to intelligently filter menus in your application based on standard XPath Expressions. This article walks through filtering menus, but filters can also be used on individual questions. 

Table of Contents
minLevel1
maxLevel6
outlinefalse
stylenone
typelist
printabletrue

1… To enable menu filtering, you first need to enable the Display Conditions addAdd-onOns. Select the gear icon next to the application name in the upper left hand corner. Then select the Add-Ons tab.

...

Select the three lines on the right hand side and select the 'Calculations' option if it is not already displayed.

...

Now enable the "Display Condition" add-on. Be sure to save after enabling the feature:

...

Menu filters are added on the Menu Menus Settings page:

...

Expressions are written using a standard XPath Expression. You can find examples of these on the Common Logic and Calculations and CommCare Functions.

Note that you must change your CommCare version to 2.20 or later in the Application Settings AND you must be using CommCare mobile 2.20 or later in order to use a Menu Filter.

...