cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
P_SA
Level: Powered On

Checkbox and label

hi everyone , need some help here.
in the screen , there are points 1 ,2 and 3.

my scenario is ,

point 1 : user will select anyone of the checkboxes
point 2 : after a checkbox is selected the value should be seen in a label.
point 3 : the submitted value should be seen in a label.

 

below is the screen

 

Capture.PNG

1 REPLY 1
Lukas1
Level: Powered On

Re: Checkbox and label

If the user must not select multiple values I recommend to use radio buttons. The formula in the "Text"-Property of the label would be: 

Radio1.Selected.Value

 

If the user should be able to use multiple values and you want to show all of them in the label the formula for the "Text"-Property of the label could be something like this:

Left(
    If(
        Checkbox1.Value;
        Checkbox1.Text & ", ";
        ""
    ) & If(
        Checkbox1_1.Value;
        Checkbox1_1.Text & ", ";
        ""
    ) & If(
        Checkbox1_2.Value;
        Checkbox1_2.Text & ", ";
        ""
    );
    Len(
        If(
            Checkbox1.Value;
            Checkbox1.Text & ", ";
            ""
        ) & If(
            Checkbox1_1.Value;
            Checkbox1_1.Text & ", ";
            ""
        ) & If(
            Checkbox1_2.Value;
            Checkbox1_2.Text & ", ";
            ""
        )
    ) - 2
)

 Don't forget to rename the radio buttons/ checkboxes.

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (4,675)