cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ClemParpa
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
v-xida-msft
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
v-xida-msft
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
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Users online (65,008)