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

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 Team
Community Support Team

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 Team
Community Support Team

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
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (5,145)