cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
IPC_ahaas
Continued Contributor
Continued Contributor

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

IPC_ahaas
Continued Contributor
Continued Contributor

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?

IPC_ahaas
Continued Contributor
Continued Contributor

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

IPC_ahaas
Continued Contributor
Continued Contributor

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

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (5,215)