cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

button select

hello

 

I need help on a subject. Unfortunately I can't find an answer to my problem.

I would like to hide the date selection if the full extraction button is activated.

I have tested this function:

When I use it, the selection of dates is hidden when the button is activated. However, when I come back to the deactivated state, the dates are not visible.

1 ACCEPTED SOLUTION

Accepted Solutions

@Anonymous 

Very good!  Can you please click on Accept as Solution so that others who might have your problem can find a solution quickly.  Thanks.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

6 REPLIES 6
RandyHayes
Super User
Super User

@Anonymous 

Do you have any formulas to share?

 

In general, your DisplayMode properties of the two DatePickers should be based on the state of the "Full Extraction" toggle.

 

This formula in the DisplayMode property of both datepickers should yield what you are looking for.

If(yourFullExtractionToggle.Value, Disabled, Edit)

 

Replace the "yourFullExtractionToggle" with the name of your toggle control.

 

I hope this is helpful for you.

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!
v-yutliu-msft
Community Support
Community Support

Hi @Anonymous ,

Do you want to change a date picker's visibility based on a toggle whether is checked?

If so, you need to set  the date picker's Visible property , not DisplayMode.

You could set the datepicker's Visible like this:

If(!Togglename.Value,true,false)

//if the toggle is  checked, the datepicker will be invisible.

If the toggle is unchecked, the datepicker will be visible.

 

 

 

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.

@Anonymous 

I might have understood that you wanted the datepickers to be disabled rather than visible.

Yes, if you want the visibility to be changed, then set the Visible property of the datepickers to : yourFullExtractionToggle.Value

Three is no need for the extra If...true, false stuff.

Again, replacing the "yourFullExtractionToggle" with the name of your toggle control.

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!
Anonymous
Not applicable

thank you for your help. 

 

It's works now 🙂 

 

 

@Anonymous 

Very good!  Can you please click on Accept as Solution so that others who might have your problem can find a solution quickly.  Thanks.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Hi @Anonymous ,

Yes, could you mark my answer as a solution if my answer help you?

Thanks!

 

 

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.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,091)