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

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Top Kudoed Authors
Users online (82,918)