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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Combobox is empty chec...
Power Apps
Unanswered

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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard