cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MRCL
Advocate V
Advocate V

How to turn a button visible=false or disabled=true?

I tried to make a button visible=true or disabled=false with the click of another button, but it does not work. Anybody with the same problem?

15 REPLIES 15

Hi Carlos,

 

I'm curious to know why as to why a variable is required in this instance? 

 

I've been trying to set the visibility of a camera control with something on long the lines the following within the OnSelect of an Icon

 

CameraControl.Visible = true

 

Now I'm having to introduce a variable where it would seem one is not required. 

 

I'm interested in what is happening under the hood of PowerApps - for interests sake 🙂

 

Cheers

Radek
Regular Visitor

ButtonButton

How can I use dot (.) in the formula? I try this scenario. I have two buttons and I want to disable button2 if i press button1.

On button1: OnSelect > fx button1.disabled: true

It not working - error syntax

 

I do it with UpdateContext with context variable. Is it possible to do it without context variable?

Anonymous
Not applicable

I want Edit button enable only for the user who created the record can only see Edit button

Hi, I am also having exact scenario for gallery. I have created Updatecontext ie., UpdateContext({visible:false}) and tried to bind visible context variable in to Gallery1.Visible:visible. But it is throwing error as shown in attached screenshot.

Could you please help me how to bind visible context variable to gallery1.visible propery. 

 
 
 

I have a doubt regarding this. If I press the button only then i need another button to be displayed otherwise it must be not visible. I tried the false condition but it is not working. Any solution?

VidhanShah
Regular Visitor

I have a question i am stuck right now at the table that i have created and i have added some tabs in it and there are 2 buttons(Add and save), i want when i click on a particular then only that ADD button will be visible to the user while rest others must be hidden

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (1,789)