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!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

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.

Users online (1,122)