cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
TheSlawekG
Helper II
Helper II

Show button when all answers provided

Hi Community,

 

I'm building an inspection app and struggling with the "Send Audit" button to be visible only when all answers are provided.

TheSlawekG_0-1663691624169.png

 

Above the button is a gallery filtered with AuditID.

TheSlawekG_1-1663691673892.png

Empty answer highlighted.

 

I tried to check the SharePoint list for empty rows as well as the gallery but no luck.

If(IsEmpty(AuditsQuestions.Answer), false, true)

If(IsEmpty(Filter(AuditsQuestions, varRecord.ID = AuditID)), false, true)

 

I tried using isBlank but as I said, no success.

 

Any ideas?

 

Thank you.

Regards

 

Slawek

1 ACCEPTED SOLUTION

Accepted Solutions
AaronKnox
Resolver IV
Resolver IV

I tried If( Blank() in Gallery.Allitems.Answer but that didn't seem to work.  CountIf worked:

 

If(CountIf( Gallery1.AllItems.Answer, IsBlank(Answer) ) > 0, false, true)

View solution in original post

3 REPLIES 3
Nogueira1306
Super User
Super User

You can use is blank because you are using 2 icons...

 

You can try checking the color of the items... Something like:

 

Icon1.Color = Green

 

You need to check all icons.

 

If you need additional help please tag me in your reply and please like my reply.
If my reply provided you with a solution, pleased mark it as a solution ✔️!

Best regards,

Gonçalo Nogueira

Check my LinkedIn!

My website!

AaronKnox
Resolver IV
Resolver IV

I tried If( Blank() in Gallery.Allitems.Answer but that didn't seem to work.  CountIf worked:

 

If(CountIf( Gallery1.AllItems.Answer, IsBlank(Answer) ) > 0, false, true)
TheSlawekG
Helper II
Helper II

@AaronKnox  Thank you!

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,108)