Versions Compared


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

This is now supported in the Application Builder using the 'Custom Single and Multiple Answer Questions' Feature Preview. For more information about how to turn on this feature please see Add-Ons and Feature Previews.

titleThe process described below is not actively supported by CommCare
The instructions below are for advanced users only; Dimagi may not be able to help if you attempt to make changes to xml by hand and make a mistake.


Inside your form, you want to display existing cases in a checklist or single select question.  To do this, you need to turn on a Feature Preview called "Custom Single and Multiple Answer Questions".  This allows you to display custom choice lists in forms (i.e. a list of case sharing groups) instead of just items from a Lookup Table.

  1. Go to your project settings (from the Settings wheel on the top right corner of the screen)
    Image RemovedChoose Feature Previews from the choices on left sideApplication Settings, then Select the Add-Ons tab.
    Image Added
  2. Choose the button with three lines on the right-hand side that is next to the save button and select 'Calculatons'Image Added

  3. Turn on the "Custom Single and Multiple Answer Questions" feature preview and then click on Update Previewsadd-on to enable the necessary feature:Image Added

Step 2: Configure Your Form

  1. In your form, add a new Checkbox Lookup Table question
    Image RemovedImage Added
  2. Choose the Lookup Table Data item below the added question to configure the data that will be displayed in the question.  Choose the (...) button and enter the following:
    1. Set the query expression to instance('casedb')/casedb/case[@case_type='your_type']  (Replacing your_type with the case type you want to display)
    2. Set instance ID to casedb
    3. Set the Instance URI to jr://instance/casedb 
    4. Hit the Save button
    5. Set the value to @case_id 
    6. Set the label to case_name