Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

ComboBox IsBlank or IsEmpty not working

(0) ShareShare
ReportReport
Posted on by

I have a function whereby is a combobox is blank or its item is deleted, I need another field to show a certain value. 

 

I have set the DEFAULT to a text box to:  

 

If(IsEmpty(Combobox),"7","4"

 

However, the function doesn't seem to 'know' that the combobox is blank or empty when I delete the value in it? 

 

Many thanks!

Categories:
  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at
    Re: ComboBox IsBlank or IsEmpty not working

    If you select something from combobox and unselect it, IsBlank will cover this scenario and if your combobox is empty at the start, IsEmpty will work in this case

  • jed76 Profile Picture
    on at
    Re: ComboBox IsBlank or IsEmpty not working

    Perfect - many thanks!

     

    Can't understand why you have use both IsBlank OR IsEmpty to make it work successfuly?

  • BCBuizer Profile Picture
    22,185 Super User 2025 Season 1 on at
    Re: ComboBox IsBlank or IsEmpty not working

    Hi @jed76 ,

     

    The Default property for ComboBoxes is deprecated and should not be used anymore. It has been replaced with the DefaultSelectedItems property. Unfortunately, including a reference to itself will make the fomula circular and will hence generate error.

     

    A way to make this work is to set the DefaultSelectedItems property to something like this (I used the ComboBoxSample for the Items property):

     

    If(IsEmpty(ComboBox2.SelectedItems),Table({Value1 : "Item 4"},{Value1 : "Item 7"}))

     

    Then set the OnChange property to:

     

    If(IsEmpty(Self.SelectedItems),Reset(Self))

     

    This will check if any items have been selected and reset the combobox if there are none, triggering the DefaultSelectedItems to be selected.

  • Verified answer
    NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at
    Re: ComboBox IsBlank or IsEmpty not working

    Hi,

    You can use below formula -

    If(IsEmpty(Combobox.SelectedItems) || IsBlank(Combobox.Selected.Value), "7", "4")

  • MVP-Phipps Profile Picture
    3,479 Super User 2024 Season 1 on at
    Re: ComboBox IsBlank or IsEmpty not working

    Put this function on the on change as well as the default...

    Please Accept as Solution if it solves your question. Or just give it a Thumbs Up if it is helpful because this can help others.

    LinkedIn: https://www.linkedin.com/in/charlie-phipps-%F0%9F%91%A8%E2%80%8D%F0%9F%92%BB-91338715b/
    YouTube: https://www.youtube.com/channel/UChmFBGU1YKIU91sNMQ7buGg
    Twitter: https://twitter.com/phipps0218

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 770 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 494

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 399