cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PeterDonohue
Advocate II
Advocate II

Blank Fields In Gallery

I have a gallery that is populated dynamically by a Collection so when you add items they show up in the gallery.

Each item has a blank TextInput box that allows users to enter a percentage. 

I want to ensure that:

 

  1. There are no blank items
  2. A warning shows when the total is not 100%

I have figure out the total warning thing and will disable the submit button until it equals 100%

 

The bit I can't figure out is how to check for the blank input boxes

 

I have tried Visible: 

 

If(
    IsBlank(Gallery5_1.AllItems.Label24),
    true,
    false
)

 

but no luck

 

Screen Shot 2020-08-24 at 12.13.45 pm.png

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User III
Super User III

Hi @PeterDonohue ,

Two things the check - so put this on the DisplayMode of the Button

If(
   Sum(
      Gallery5_1.AllItems,YourPercentFieldName
   )<> 100 ||
   "##" in 
   Concat(
      Gallery5_1.AllItems,
      YourPercentFieldName & "#"
   ),
   DisplayMode.Disabled,
   DisplayMode.View
)

 

Please click Accept as solution 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 Thumbs Up.

 

View solution in original post

2 REPLIES 2
WarrenBelz
Super User III
Super User III

Hi @PeterDonohue ,

Two things the check - so put this on the DisplayMode of the Button

If(
   Sum(
      Gallery5_1.AllItems,YourPercentFieldName
   )<> 100 ||
   "##" in 
   Concat(
      Gallery5_1.AllItems,
      YourPercentFieldName & "#"
   ),
   DisplayMode.Disabled,
   DisplayMode.View
)

 

Please click Accept as solution 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 Thumbs Up.

 

View solution in original post

Awesome work as usual @WarrenBelz 

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (1,455)