powerappspowerapps-canvaspowerapps-formula

How to show combo box values to textbox with next line


I have one ComboBox in which there are multiple values are selected I want to show that values in TexBox with next line like

AAA
BBB
CCC

Currently its show in one line

AAA | BBB | CCC

I use bellow code

DataCardValue4.Selected.Value on Default Property of TextBox


Solution

  • Use formula for Default property of text input in this format:

    Concat(ComboBox1.SelectedItems, ThisRecord.Value1, Char(10))
    

    Where ComboBox1 is the name of combo box control.

    Output:

    enter image description here

    You may need to adjust the formula slightly as per the data source you used in items of your combo box control.