Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Check if there is a blank value on each row of Gallery/Collection

(0) ShareShare
ReportReport
Posted on by 260
Good day experts!
 
Please help me how can I disable the Save button if there is a blank value in my gallery? User must complete to fill out the red fields first before they can save.
Items in Gallery: getUpdates
Thank you in advance!
Categories:
  • scorpio24 Profile Picture
    260 on at
    Check if there is a blank value on each row of Gallery/Collection
    Thank you so much @WarrenBelz! As usual, you're a life saver for a newbie like me
  • Verified answer
    WarrenBelz Profile Picture
    146,508 Most Valuable Professional on at
    Check if there is a blank value on each row of Gallery/Collection
    Something like this should do it
    If(
       CountRows(
          Filter(
             GalleryName.AllItems,
             IsBlank(idtextbox_1.Text) Or 
             IsBlank(caseIDtextbox_1.Text) Or 
             IsBlank(rmnumbertextbox_1.Text) Or 
             IsBlank(nametextbox_1.Text) Or 
             IsBlank(divisiontextbox_1.Text) Or 
             IsBlank(teamtextbox_1.Text) Or 
             IsBlank(RMcombobox_1.Selected)
          )
       ) > 0,
       DisplayMode.Disabled,
       DisplayMode.Edit
    )
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)    Visit my blog Practical Power Apps    LinkedIn    Buy me a coffee
  • scorpio24 Profile Picture
    260 on at
    Check if there is a blank value on each row of Gallery/Collection
    Currently, this is in the DisplayMode of my save button. However, this is working only when you click each row and not the entire Gallery:
     
    If(IsBlank(idtextbox_1.Text) Or IsBlank(caseIDtextbox_1.Text) Or IsBlank(rmnumbertextbox_1.Text) Or IsBlank(nametextbox_1.Text) Or IsBlank(divisiontextbox_1.Text) Or IsBlank(teamtextbox_1.Text) Or IsBlank(RMcombobox_1.Selected),DisplayMode.Disabled,DisplayMode.Edit)

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

Thomas Rice – Community Spotlight

We are honored to recognize Thomas Rice as our March 2025 Community…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,508 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,447 Most Valuable Professional

Leaderboard