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

Community site session details

Session Id : BFZkAxvYXKGRXjNFGQM5s/
Power Apps - Building Power Apps
Answered

ComboBox IsBlank or IsEmpty not working

Like (0) ShareShare
ReportReport
Posted on 5 Sep 2022 10:32:37 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 05 Sep 2022 at 11:42:15
    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 05 Sep 2022 at 11:24:39
    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,262 Super User 2025 Season 2 on 05 Sep 2022 at 11:13:17
    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 05 Sep 2022 at 10:53:08
    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,483 Super User 2024 Season 1 on 05 Sep 2022 at 10:47:22
    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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2