# Display selected values of a multiselect question in a new form

**URL:** <https://forum.dimagi.com/t/display-selected-values-of-a-multiselect-question-in-a-new-form/6449>\
**Category:** Users\
**Created:** [May 7, 2019, 12:45pm UTC](https://forum.dimagi.com/t/display-selected-values-of-a-multiselect-question-in-a-new-form/6449 "2019-05-07T12:45:43Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Ethan\_Soergel](https://dimagi.b-cdn.net/user_avatar/forum.dimagi.com/ethan_soergel/32/543_2.png) [@Ethan\_Soergel](https://forum.dimagi.com/u/Ethan_Soergel)\
**Post date:** [May 7, 2019, 7:57pm UTC](https://forum.dimagi.com/t/display-selected-values-of-a-multiselect-question-in-a-new-form/6449/4 "2019-05-07T19:57:03Z")

</div>

I listed a couple other options in my [original response on the other thread](https://forum.dimagi.com/t/multichoice-question-checkbox-display-conditions/6437/2).

You can simply show the value of that case property, but it will contain the choice values from the "fatores de risco" question, not the display text.

The simplest solution would be to use the [`replace()`](https://confluence.dimagi.com/display/commcarepublic/CommCare+Functions#CommCareFunctions-replace) function once for each choice option, to replace the choice value with the desired display text. For example, if the case property is

`"falta_de_apoio depressao"`

Then you can use

```plaintext
replace(
    replace(
        replace(
            replace(#case/fatores_de_risco, " ", ", "),
            "falta_de_apoio", "Falta de apoio familiar"),
        "depressao", "Tristeza/depressao"),
    "abusivo_alcool", "Uso abusivo do álcool")

```

(And so on) to transform that into `"Falta de apoio familiar, Tristeza/depressao"`. You can apply this transformation either in a hidden value in the original form, saving the result to the case, or in the followup form.

This means you have to duplicate each label, which will be tedious, though unfortunately there's no straightforward way to get the display text directly.

---

_[View the full topic](https://forum.dimagi.com/t/display-selected-values-of-a-multiselect-question-in-a-new-form/6449)._
