I am building a form/questionnaire using powerapps. For question 2, I have a list box with three choices. When a user selects from one of the choices, I want to display the selected value in a label in a preceding question for comment.
For the list box on select property, I have the following code: UpdateContext({ selectedItems: ListBox_Q2c.SelectedItems })
For label one text property: If(
CountRows(selectedItems) >= 1,
First(selectedItems).Value,
""
)
For label 2 and 3: I have this expression : If(
CountRows(selectedItems) >= 2,
Concat(
FirstN(selectedItems, 2).Value,
", "
),
""
)
I am not able to populate label 2 and 3. It displays ", ," in the label. Do you know what am doing wrong. Is there more simpler solution.
Concat(
FirstN(ucselected, 2),Value,
", "
)
use this formula
Please click Accept as solution and Thumbs Up. if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
WarrenBelz
146,524
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,906
Most Valuable Professional