web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / First screen buttons a...
Power Apps
Answered

First screen buttons are visible for split second

(0) ShareShare
ReportReport
Posted on by 909

Hello,

 

I have a problem with a first screen on my app.

I have on this screen a toggle that allows to start admin context and this changes button/labels in whole app.

 

This works very good, but I have a problem with toggle visibility. For a split second during app loading it is visible for users. After that it becomes invisible. So users can see it for a brief time.

I tried using timers and also blocking it with same color rectangle. Little improvement was visible but that's, all.

Fast user can use this toggle even if he is not authorized....

 

Here are functions:

 

Toggle Visible: 

 

 

!IsBlank(LookUp(ListaAdmin,'Dane administratora'.Email=gblUserEmail)) && varTimer1=true

 

 

This check whether user is on Sharepoint list and if Timer is finished.

Toggle Check:

 

 

Set(varAdmin,true)

 

 

This is variable that set context of app for admin.

UnCheck sets in on false.

Timer onTimerEnd:

 

 

Set(varTimer1,true)

 

 

Timer has a setting autostart ON

In app on start I have this setting to reset variables:

 

 

Set(varAdmin,false);Set(varTimer1, false)

 

 

 

Rectangle that I added has visible settings:

 

 

varTimer1=false

 

 

 

This is a critical cause fast user can be admin ;( Maybe button blocking will help, but it still will be visible for a split second...

Is there any workaround?

Maybe copying this screen and setting timer to navigate to same screen but with this functions? That will give some time to load. But will it look good? There will be a blink for users...

 

Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,921 Most Valuable Professional on at

    Hi @Elitezone ,

    I cannot test this, but so suspect the Lookup is taking the small time to execute. Try setting this OnStart 

     

    Set(
     varNoAdmin,
     !IsBlank(
     LookUp(
     ListaAdmin,
     'Dane administratora'.Email=gblUserEmail
     )
     )
    )

     

    Then your visible

     

    varNoAdmin && varTimer1

     

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

  • Elitezone Profile Picture
    909 on at

    @WarrenBelz 

    Works flawlessly in play mode, but toggle is always invisible in studio... Guess I can live with that...

     

    Still this is a bitch clutch to have it on app start - since I have problems when I delete admin rights - user still has it until next app reload.

    Thank you anyway

  • WarrenBelz Profile Picture
    156,921 Most Valuable Professional on at

    No problems @Elitezone ,

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • WarrenBelz Profile Picture
    156,921 Most Valuable Professional on at

    Hi @Elitezone ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 226 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 191 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 167

Last 30 days Overall leaderboard