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

TextField(Label) Visible If

Hi there, 

I am in a situation where i need a bit of help with the "If" statement in PowerApps. 

I essentially have a checkbox for every week day that the users can mark, and then click "Order", What i would like to do, is to make it possible for them to see only the weekdays they have marked off in the first screen on the last confirmation screen. 

Example: 
I check off Monday, Tuesday and Wednesday and move on. 
On the last page I would like the app to showcase labels saying, 
"You have chosen": Monday, Tuesday, Wednesday. 

Hope you understand my point, anyone know how to use the "If" statement in conjunction with the Visible attribute, or is it something completely different Smiley Happy 

Thank You! Smiley Happy 
- Tobi

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: TextField(Label) Visible If

Hi @TCH ,

Do you mean that you want the confirm screen only display the week day that you have chosen?

I've made a similar test for your reference:

1)Screen1:

seven check boxes, named checkbox1,checkbox2,checkbox3,checkbox4,checkbox5,checkbox6,checkbox7

Set checkbox1's Text: Monday

Set checkbox2's Text: Tuesday

Set checkbox3's Text:Wednesday

Set checkbox4's Text:Thursday

Set checkbox5's Text:Friday

Set checkbox6's Text: Saturday

Set checkbox7's TextSmiley Frustratedunday

2)Screen2:

insert a lable , set the label's Text:

"You have chosen:"& If(Checkbox1.Value,Checkbox1.Text&",","")& 
If(Checkbox2.Value,Checkbox2.Text&",","")&
If(Checkbox3.Value,Checkbox3.Text&",","")&
If(Checkbox4.Value,Checkbox4.Text&",","")&
If(Checkbox5.Value,Checkbox5.Text&",","")&
If(Checkbox6.Value,Checkbox6.Text&",","")&
If(Checkbox7.Value,Checkbox7.Text,"")

Since the sepeator "," may influence aesthetics, you could also try to use " " to replace it.

For example:  If(Checkbox1.Value,Checkbox1.Text&" ","")9121.PNG

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
3 REPLIES 3

Re: TextField(Label) Visible If

I'd put all of the days of the week ina collection, then use a gallery to put the checkboxes on the screen, adding them to a second collection called Selecteddays, you can then use Filter(source,Days in Selecteddays).

 

There is a similar idea in App in a day, also have a look at powerapps performance considerations by Mhedi.

Community Support Team
Community Support Team

Re: TextField(Label) Visible If

Hi @TCH ,

Do you mean that you want the confirm screen only display the week day that you have chosen?

I've made a similar test for your reference:

1)Screen1:

seven check boxes, named checkbox1,checkbox2,checkbox3,checkbox4,checkbox5,checkbox6,checkbox7

Set checkbox1's Text: Monday

Set checkbox2's Text: Tuesday

Set checkbox3's Text:Wednesday

Set checkbox4's Text:Thursday

Set checkbox5's Text:Friday

Set checkbox6's Text: Saturday

Set checkbox7's TextSmiley Frustratedunday

2)Screen2:

insert a lable , set the label's Text:

"You have chosen:"& If(Checkbox1.Value,Checkbox1.Text&",","")& 
If(Checkbox2.Value,Checkbox2.Text&",","")&
If(Checkbox3.Value,Checkbox3.Text&",","")&
If(Checkbox4.Value,Checkbox4.Text&",","")&
If(Checkbox5.Value,Checkbox5.Text&",","")&
If(Checkbox6.Value,Checkbox6.Text&",","")&
If(Checkbox7.Value,Checkbox7.Text,"")

Since the sepeator "," may influence aesthetics, you could also try to use " " to replace it.

For example:  If(Checkbox1.Value,Checkbox1.Text&" ","")9121.PNG

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
TCH
Level: Powered On

Re: TextField(Label) Visible If

Worked like a charm, thanks so much Smiley Happy 
- Tobias 

Helpful resources

Announcements
firstImage

PowerApps Monthly Community Call!

Join us next Wednesday for our Demo Extravaganza, October 16, 2019 8am PDT.

firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 192 members 4,274 guests
Recent signins:
Please welcome our newest community members: