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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Prevent users from goi...
Power Apps
Unanswered

Prevent users from going on a screen more than once

(0) ShareShare
ReportReport
Posted on by 43

Hi,

 

Not sure if this would be possible but if anyone is able to help, that would be much appreciated.

 

I currently have an app that users put an entry in to request maternity leave. When the app is opened, a screen appears with multiple buttons, one of these being the screen where they can put in their entry, and another one of the screens is where they can request to change their return to work date. However, we are having quite a large amount of users just doing a whole new entry when they want to change their return to work date. For this reason, I would like to prevent them from being able to do a whole new entry on the first screen more than once.

 

Is anyone able to help with this or got any ideas of ways I can prevent this?

Categories:
I have the same question (0)
  • Verified answer
    timl Profile Picture
    36,328 Super User 2025 Season 2 on at

    @edwardhorton 

    You could do this by looking up the record in your data source and hiding the button if an existing record exists.

    Supposing that you uniquely identify the users by email address in your data source.

    You would set the visible property of your button like so:

    IsBlank(LookUp(Datasource, 
     EmailAddress=User().Email
     )
    )
    
  • edwardhorton Profile Picture
    43 on at

    Thanks for this, is there any way to do this and just set it to everyone as I have a few thousand entries in the list already?

  • timl Profile Picture
    36,328 Super User 2025 Season 2 on at

    Hi @edwardhorton 

    I don't quite follow what you mean by this.

    Somehow, it's necessary to identify those who have already submitted a maternity request so that you can conditionally disable the button for those users only. I suggested email address, but you could also look up an existing record by some other unique identifier that you've defined in your data source.

  • edwardhorton Profile Picture
    43 on at

    Oh apologies, I read your original reply wrong, I see what you mean now. Thank you very much!

  • timl Profile Picture
    36,328 Super User 2025 Season 2 on at

    You're welcome @edwardhorton - glad to help.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 759 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 310 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 228

Last 30 days Overall leaderboard