Announcements
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.
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.
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
Hi @JimboSey ,
That changes the code a little bit:
If( LookUp( SharePointList, TextColumn = User().Email ).'Stage Three added', DisplayMode.Disabled, DisplayMode.Edit )
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.
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.
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 401 Most Valuable Professional
11manish 201 Super User 2026 Season 2
MS.Ragavendar 128 Super User 2026 Season 2