cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

button

Hi,

I would like thanks to a button to be able to make appear or not datacards of a form. Create 2 buttons to use them as tabs that would appear or not the fields of the form.However I can't manage the "Visible" field or any other control fields (like the value of toggle) with these. Could you inform me if there is a function I don't know?

Thank you for your reply

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Re: button

Hi @ClemParpa,

 

Could you please share a bit more about your scenario?

Do you want to manage the value of the Visible property of a control using a Button control?

 

If you want to manage the value of the Visible property of a control using a Button control, please take a try with the following workaround:6.JPG

I add a Button control and a Label control within my PowerApps app's screen. The OnSelect property of the Button control set to following formula:

UpdateContext({LabelValue:!LabelValue})

 

The Visible property of the Label control set to following formula:

LabelValue

The Text property of the Label control set to following formula:

"Flow Test"

 

For managing the value of Toggle control, the OnSelect property of the Button control set to following formula:

UpdateContext({ToggleValue:!ToggleValue})

The Default property of the Toggle control set to following formula:

ToggleValue

7.JPG

 

More details about UpdateContext function, please check the following article:

UpdateContext function

 

Best regards,

Kris 

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

View solution in original post

1 REPLY 1
Community Support
Community Support

Re: button

Hi @ClemParpa,

 

Could you please share a bit more about your scenario?

Do you want to manage the value of the Visible property of a control using a Button control?

 

If you want to manage the value of the Visible property of a control using a Button control, please take a try with the following workaround:6.JPG

I add a Button control and a Label control within my PowerApps app's screen. The OnSelect property of the Button control set to following formula:

UpdateContext({LabelValue:!LabelValue})

 

The Visible property of the Label control set to following formula:

LabelValue

The Text property of the Label control set to following formula:

"Flow Test"

 

For managing the value of Toggle control, the OnSelect property of the Button control set to following formula:

UpdateContext({ToggleValue:!ToggleValue})

The Default property of the Toggle control set to following formula:

ToggleValue

7.JPG

 

More details about UpdateContext function, please check the following article:

UpdateContext function

 

Best regards,

Kris 

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

View solution in original post

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

Top Solution Authors
Users online (7,113)