Multichoice question - checkbox - display conditions

Hi Ferdinand,

You can save a multiselect question to a case. The result will be the selected choice values combined into a string separated with spaces. There are a few "Multi-Select Helper Functions" you can use for instance to check whether a particular answer was selected. Since the value of "especifica outro factor de risco" is a free text entry, I'd store that as a separate case property.

In your followup form, you'll probably want to map those choice values back to the display text. This is a bit more complex, but still possible. If you'd like to handle each selection individually, then you could make a group for each risk factor, where the display condition is for instance:
selected(#case/fatores_de_risco, 'falta_de_apoio_familiar').

Another option would be to use the replace() function a number of times to substitute the display text for the choice values, though you should be certain that no choice values are inadvertently contained in display text. Finally, a lookup table would likely be a good approach here, since it'll store that mapping, though that's more of a heavy-handed solution.

  • Ethan