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 IsBlank or Is...
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:
I have the same question (0)
  • MVP-Phipps Profile Picture
    3,521 Super User 2024 Season 1 on at

    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

  • Verified answer
    NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Hi,

    You can use below formula -

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

  • BCBuizer Profile Picture
    22,654 Super User 2026 Season 1 on at

    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.

  • jed76 Profile Picture
    on at

    Perfect - many thanks!

     

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

  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    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

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 1,041

#2
11manish Profile Picture

11manish 676

#3
Valantis Profile Picture

Valantis 655

Last 30 days Overall leaderboard