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 / Disable button if curr...
Power Apps
Answered

Disable button if current user has already clicked previously

(0) ShareShare
ReportReport
Posted on by 321

Hi, 

 

What would be the easiest way to make a button on my App disabled, if the current user has already clicked it, the button triggers a Flow which adds data to a SharePoint list, but this information should only be added one time only by each user, so I want to disable the button thereafter for the specific user.

 

Thanks in advance.

Categories:
I have the same question (0)
  • BCBuizer Profile Picture
    22,854 Super User 2026 Season 2 on at

    Hi @JimboSey,

     

    Is the information of the user that has triggered the flow also captured in the SP list?

     

    If so, you can use that to disable the button by setting the DisplayMode property of the button to:

     

    If(
     IsBlank(
     LookUp(
     SharePointList,
     ColumnName.Email = User().Email
     )
     ),
     DisplayMode.Edit,
     DisplayMode.Disabled
    )

     

    The above works under the assumption that you have a person type column (ColumnName) that has the name of the person that entered the item.

  • JimboSey Profile Picture
    321 on at

    Hi, thanks for the quick reply....

     

    So I have a SharePoint list for all users profiles (once they create their profile in the App), I have single line of text column in the SharePoint list which logs the users email address. I have another column (Stage Three added) in the SharePoint list which is a Yes/No column, Id like the button to be disabled if the current user has a Yes in that 'Stage 3 added' column, but enabled if not. 

     

    Hope this makes sense

  • Verified answer
    BCBuizer Profile Picture
    22,854 Super User 2026 Season 2 on at

    Hi @JimboSey ,

     

    That changes the code a little bit:

    If(
     LookUp(
     SharePointList,
     TextColumn = User().Email
     ).'Stage Three added',
     DisplayMode.Disabled,
     DisplayMode.Edit
    )

     

  • JimboSey Profile Picture
    321 on at

    Worked a treat, thank you. 

    Final question, is there any way to patch from the button to Yes/No column, the default value is No, so Id lick to change to Yes on select of the button.

     

  • BCBuizer Profile Picture
    22,854 Super User 2026 Season 2 on at

    Hi @JimboSey ,

     

    For sure this is possible, but I would recommend to have the flow update the item. That way you can make sure everything was done successfully rather than using PowerApps.

  • JimboSey Profile Picture
    321 on at

    Perfect, thanks so much 🙂

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard