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 Apps
Answered

Powerapps formula

(0) ShareShare
ReportReport
Posted on by 24

Hello,

 

I have a gallery and controls are groups. Now I want to disabled the save icon of the gallery when the status of the collection is submitted. I'm doing something like below.

 

If(LookUp(collection,Collection_Column1=Gallery.Selected.Column1,Collection_Column2) = "Submited",Disabled)

 

Issues is It's disabling all the save icon in the gallery. I just want to disable the where the Collection_Column2 = Submited. Can someone help please? Thanks.

Categories:
I have the same question (0)
  • vshah2 Profile Picture
    24 on at

    FYI, When I have SQL DB as source in gallery, I'm able to achieve the same thing with below formula

     

    If(ThisItem.Collection_Column2="Submited",DisplayMode.Disabled)

     

    I think thisitem is the trick in above formula. I'm looking for similar things when I use collection as a source to gallery

  • eka24 Profile Picture
    20,925 on at

    Please give a screenshot of the Gallery

    Please try this:
    At the beginning of the OnSelect of the Save: Button

    Collect(DisaButtonThisItem.ID)

     
    Then on the Displymode of the button:
    If(ThisItem.ID in DisaButton, DisplayMode.Disabled, DisplayMode.Edit)

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Verified answer
    WarrenBelz Profile Picture
    155,463 Most Valuable Professional on at

    Hi @vshah2 ,

    That formula should work if the value of Collection_Column2 in the gallery is Submited (note misspelling - should be Submitted).

    What is the Items of your gallery and the code for Collection of the data?

  • vshah2 Profile Picture
    24 on at

    Yes, That was the issue. I was using thisitem in the formula but I wasn't patching the source collection. I appreciate your quick help. Thank you.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 610

#2
Haque Profile Picture

Haque 317

#3
WarrenBelz Profile Picture

WarrenBelz 315 Most Valuable Professional

Last 30 days Overall leaderboard