Display Power Apps Checkbox Control Selected Value in Text label

174 Views Asked by At

I have added a four-check box control and set its Text property manually. Till now, it's fine, Now, I want to display the checkbox control selected values on the text label by clicking the button control. Here, I have used below code:

Set(varSelected,If(chk_Finance_1.Value,{Result:"Finance"}))

enter image description here

Please, suggest any solution...

1

There are 1 best solutions below

1
Sam Nseir On

I would suggest using a horizontal blank gallery for your checkboxes. Set the gallery items to:

["IT", "HR", "Finance", "Marketing"]

Then for your label you can have:

Concat( Filter(YourCheckBoxGallery.AllItems, Checkbox1.Value), Checkbox1.Text, ";")