cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
IPC_ahaas
Responsive Resident
Responsive Resident

Show Object When Editing App, but Hide When Using App

Is there a way to have an object hide when the App is being used/ran, but show it when I'm editing the app? I have to remove code just to edit an object I know is there. Because it's designed to be hidden, I can't see it when I'm editing the app.

 

I hope I'm explaining this right. Basically, I have a DataCard that only has the Visible=True set when a Checkbox is clicked. I'd like see it when editing the app so I don't have to go into Preview mode every time or remove the condition just to edit it.

1 ACCEPTED SOLUTION

Accepted Solutions
phipps0218
Super User
Super User

I usually set a variable for debug on the on app start. The apply that to my visibility property logic.

 

Please Accept as Solution if it solves your question. Or just give it a Thumbs Up if it is helpful because this can help others.

LinkedIn: https://www.linkedin.com/in/charlie-phipps-%F0%9F%91%A8%E2%80%8D%F0%9F%92%BB-91338715b/
YouTube: https://www.youtube.com/channel/UChmFBGU1YKIU91sNMQ7buGg
Twitter: https://twitter.com/phipps0218

View solution in original post

6 REPLIES 6
phipps0218
Super User
Super User

I usually set a variable for debug on the on app start. The apply that to my visibility property logic.

 

Please Accept as Solution if it solves your question. Or just give it a Thumbs Up if it is helpful because this can help others.

LinkedIn: https://www.linkedin.com/in/charlie-phipps-%F0%9F%91%A8%E2%80%8D%F0%9F%92%BB-91338715b/
YouTube: https://www.youtube.com/channel/UChmFBGU1YKIU91sNMQ7buGg
Twitter: https://twitter.com/phipps0218

Can you explain? I don't see a "Debug" listed under AppStart.

phipps0218
Super User
Super User

Set(Debug, true);

I then change the visible property of the button. Before publishing I change the debug variable to false. Does that make sense?

So you're creating a variable called "Debug" and putting it somewhere under AppStart.

Then you're manually setting that value to True or False.

Then on the element that hides/shows, you're adding a condition to "Visible" for "Debug"?

 

Well, that works I suppose. I figured it was a setting in the PowerApp.

Yeah that is what I have been doing.

 

Please Accept as Solution if it solves your question. Or just give it a Thumbs Up if it is helpful because this can help others.

LinkedIn: https://www.linkedin.com/in/charlie-phipps-%F0%9F%91%A8%E2%80%8D%F0%9F%92%BB-91338715b/
YouTube: https://www.youtube.com/channel/UChmFBGU1YKIU91sNMQ7buGg
Twitter: https://twitter.com/phipps0218

OK, that at least gives me a master control of sorts. Thanks!

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Check out the New Ideas Site

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (5,882)