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 / Required fields valida...
Power Apps
Suggested Answer

Required fields validation not working for multiselect choice column with checkbox

(1) ShareShare
ReportReport
Posted on by 112
I have a multiselect choice column in SharePoint which is shown as checkbox via Gallery. This multiselect choice column is set as Required in PowerApps NewForm.
 
Despite filling the checkbox with correct choices, it still throws validation error stating Type is required. May i know why?
 
Gallery Items
Choices([@'DataSource'].'Type')
Checkbox OnCheck
Collect(ColTypeofInfo,ThisItem.Value)
Checkbox OnUncheck
Remove(
    ColTypeofInfo,
    LookUp(
        ColTypeofInfo,
        Value = ThisItem.Value
    )
)
DataCard Required
true
DataCard Update
ColTypeofInfo
 
I have the same question (0)
  • Suggested answer
    Valantis Profile Picture
    5,267 on at
     
    The required validation fires because the form's built-in validation checks the DataCard's internal state, not your ColTypeofInfo collection. Since you're using a custom collection to manage selections, the form has no way to know the collection has items.
    Fix: set the DataCard Required property to false and handle validation manually.
    On your Submit button:
    If(
        IsEmpty(ColTypeofInfo),
        Set(varSubmitAttempted, true),
        SubmitForm(Form1)
    )
    Add an error label below the gallery with:
    Visible = And(varSubmitAttempted, IsEmpty(ColTypeofInfo))
    Text = "Type is required"
    This blocks submission and shows the error only when the collection is empty and the user has tried to submit.
    Also check that ColTypeofInfo stores records with a Value property matching the choice text exactly. The Collect(ColTypeofInfo, ThisItem.Value) stores plain text strings, but the SharePoint multiselect choice column expects a table of records with a Value column. If they don't match, the data won't save even if validation passes.
     

     

    Best regards,

    Valantis

     

    ✅ If this helped solve your issue, please Accept as Solution so others can find it quickly.

    ❤️ If it didn’t fully solve it but was still useful, please click “Yes” on “Was this reply helpful?” or leave a Like :).

    🏷️ For follow-ups  @Valantis.

    📝 https://valantisond365.com/

    💼 LinkedIn

    ▶️ YouTube

  • Suggested answer
    Kalathiya Profile Picture
    2,139 Super User 2026 Season 1 on at

    Additionally, in the above reply, since you are passing the ColTypeofInfo collection directly, the Form is not recognizing it as the required default control. I have tried a similar approach earlier.

    If we pass the collection name in the Update property, the required validation does not work. However, if we pass the default ComboBox control in the Update property, the validation works correctly and shows the required field error.

    So basically, you need to keep the default ComboBox control and set the code in its DefaultSelectedItems property as shown below and just hide the control. Then use this ComboBox control name in the Update property and try it.

     
    Approach 1:
     
    Default Selected Item - Combox Property:
    Filter(Choices([@'DataSource'].'Type'),Value in ColTypeofInfo.Value)
    Update Property
    YourCombobxControlName.SelectedItems
    Approach 2:
    Here, if no value is selected in the collection, it will trigger the validation notification instead of submitting the form.
    Submit button on select code:
     
    If(IsEmpty(ColTypeofInfo), 
       Notify("Type is required!",NotificationType.Error,2000), 
       SubmiForm(YourFormControlName) 
    );
     
    If this response resolves your issue, please mark it as the Verified Answer so it can help other community members as well.
    ---------------------------------------------------------------------------------

    📩 Need more help? Just mention @Kalathiya and I’ll be happy to assist.

    ✔️ If this answer helped you, please tick “Does this answer your question?” so it can be marked as the Verified Answer.

    💛 A Like always motivates me to keep contributing!

    ​​​​​​​
  • Vish WR Profile Picture
    3,236 on at
     

    The issue is that Power Apps' built-in required validation doesn't know about your custom ColTypeofInfo collection — it only checks the form's internal state, so it keeps throwing the error even when selections are made.

    Both replies correctly identify this and suggest the same two fixes:

    Option 1 : Keep a hidden ComboBox, set its DefaultSelectedItems to filter from ColTypeofInfo, and use it in the DataCard Update property so the form's validation works natively.

    Option 2 : Set Required to false on the DataCard and manually block submission using IsEmpty(ColTypeofInfo) on the Submit button with a Notify or error label.

    Both are valid approaches. Option 1 is cleaner if you want native form validation to work. Option 2 is simpler to implement quickly.

    Vishnu WR
     
    Please  Does this answer your question 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 answering Yes to Was this reply helpful? or give it a Like 
     

     

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 834

#2
Valantis Profile Picture

Valantis 533

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard