web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / A choice from multi-se...
Power Apps
Answered

A choice from multi-select check-boxes need to be Required before submission

(0) ShareShare
ReportReport
Posted on by 5

Hello,

Need some expert help!

My Data-card “Check Your Choices” (screenshot below) has a Gallery with Multi-select check-boxes - I need this data card to be a mandatory/required field when, if no check-boxes are checked, the Submit button will not be live.

 

The Submit button also includes expressions for the text fields - Text Field 1 and Text Field 2 -  and they behave as expected for “Required” text fields.

 

Here is what I have on my Submit button DisplayMode:

 

"If(

!IsBlank(crdTextField1.Text) &&

!IsBlank(crdTextField2.Text) &&

!IsBlank(crdCheckChoices.Update),

DisplayMode.Edit, DisplayMode.Disabled)"

 

If I missed filling either of the text fields, the Submit button remains unavailable. 

If, on the other hand, I fill out the Text fields but skip the Choices check-boxes, the Submit button becomes available, even though it shouldn’t since a choice was not made.

 

Required property for the Data card is selected .  Default and Update set to a collection.

On the gallery I have Items set to Choices([]) , OnSelect to false and Selectable to true.

On the checkbox control, I have a collection in OnCheck-Collect/OnUncheck-Remove,

OnSelect I have Select(Parent), Text I have ThisItem.Value.

 

I tried to do a CountRows for the gallery and it only shows 0 whether I have boxes checked or not so my expectation is that something is weird with my gallery/multi-choice check boxes

 

Text fields work as expected. 

Any other ideas of how I could get this right? Appreciate your time.

 

Thanks,

Screenshot 2023-01-12 at 6.24.09 PM.png
Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    154,910 Most Valuable Professional on at

    Hi @AndreaFC22 ,

    Without going into any other logic required, for what you have posted, I think you need this

    If(
     !IsBlank(crdTextField1.Text) &&
     !IsBlank(crdTextField2.Text) &&
     CountRows(
     Filter(
     GalleryName.AllItems,
     CheckBoxName.Value
     )
     ) > 0,
     DisplayMode.Edit, 
     DisplayMode.Disabled
    )

     

    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.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • AndreaFC22 Profile Picture
    5 on at

    Thank you, @WarrenBelz! Appreciate the help.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 534

#2
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 306

Last 30 days Overall leaderboard