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 / PowerApps Button control
Power Apps
Answered

PowerApps Button control

(1) ShareShare
ReportReport
Posted on by 14

Hi,

I am building a powerapp that can be used to register for events.

I have added a gallery and the data source is a Sharepoint event list. Different events will be displayed according to selected category from dropdown.

If a user clicks 'Subscribe' button for an event, the user details will get saved in a Sharepoint list and the button should be disabled if the user clicks on it once and should remain disabled for selected events after refresh too.

I've tried many ways to disable the button according to requirement, but nothing worked.

Can anyone please help with the solution.

 

Categories:
I have the same question (0)
  • Verified answer
    Devvj Profile Picture
    1,132 Super User 2024 Season 1 on at

    Hi @AP_95 
    If you save user details about the event in a SP list already I guess you can Disable the button using a filter against that record you just created, using a filter or lookup query in the DisplayMode-property on the button.

    Something like

    If(
     IsBlank( 
     Filter(
     SharePointDetailListEventName = Gallery.Selected.Name && SharePointDetailListUserEmail = User().Email)
     ),
     DisplayMode.Edit,
     DisplayMode.Disabled
    )
     

    This assumes you have info in the detail list about event name and user email, but it could be any unique keys that you have there.

    Hope that helps in the thought process!

    -------------------------------------------------------------------------
    If this is the answer for your question, please mark the post as Solved.
    If this answer helps you in any way, please give it a like.

  • AP_95 Profile Picture
    14 on at

    Thanks @Devvj 

    I used lookup instead of filter and it worked.

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

#2
11manish Profile Picture

11manish 224

#3
Valantis Profile Picture

Valantis 181

Last 30 days Overall leaderboard