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

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

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Kudoed Authors
Users online (7,481)