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 / Combobox is empty chec...
Power Apps
Answered

Combobox is empty check not working

(0) ShareShare
ReportReport
Posted on by 22

Hello,

 

In my scenario I have several comboboxes that should be checked on save if they contain an entry or are they empty. If they are empty an error message should be thrown. But the problem is now, only when I have selected an item and then removed it again the checks work. If nothing is selected before, the check does not work. In addition I have set for DefaultselectedItems = Blank()

 

What I have tried:

If(isEmpty(combobox.selecteditems) or If(isEmpty(combobox.selecteditems.Value)

If(isBlank(combobox.Searchtext)

combobox.selecteditems = Blank() or combobox.selecteditems.Value = Blank()

CountRows(combobox.Selecteditems.value) = 0

 

Categories:
I have the same question (0)
  • Verified answer
    StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @MaxF 

     

    Please try this

     

    If(
     IsEmpty(combobox.SelectedItems) || IsBlank(combobox.SelectedItems) || Len(combobox.Selected.Value) <= 0,
     Notify("combobox is empty"),
     SubmitForm(EditForm1) //Do action
    )

     

     

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @MaxF,

    Do you want to check if there is any selected or search text within the Combo Box?

    Could you please tell me more about your scenario?

     

    If you want to determine there is nothing selected and nothing searched within Combo Box, you should use the And operator to combine the conditions that check Combo Box selected and Combo Box search text.

    Please modify your formula as below:

    If(
     (IsEmpty(ComboBox42.SelectedItems) || IsBlank(ComboBox42.Selected.Value)) && IsBlank(ComboBox42.SearchText),
     SubmitForm(EditForm1),
     Notify(
     "Please fill in the Combo Box!",
     Error
     )
    )
  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @MaxF Just do CountRows(ComboBox.SelectedItems) as seen below,

    Combobox.gif

  • MaxF Profile Picture
    22 on at

    thanks, I ask me why you have to proof all this things at the same time but I think this has to do with the structure of the combobox.

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 519 Most Valuable Professional

#2
11manish Profile Picture

11manish 489

#3
Haque Profile Picture

Haque 327

Last 30 days Overall leaderboard