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
Super User

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
Super User

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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,778)