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 :
Power Apps - Building Power Apps
Unanswered

Power Apps check if combo box is empty

(0) ShareShare
ReportReport
Posted on by 67

Hi Members,

 

I have a requirement in Power Apps where I want to check if combo box is empty

 

Scenario:

  1. In the Power Apps screen, there is a Combo box control, a Button control, and a Text label control.
  2. The combo box doesn't contain any values (Blank).
  3. When the user clicks on a button control, the text label should display "The combo box has no Values"

Combo box error.pngCan anyone please suggest how I can resolve this? Thanks in advance!

I have the same question (0)
  • Rajkumar_M Profile Picture
    3,722 Super User 2025 Season 2 on at
    Re: Power Apps check if combo box is empty

    Hi @Hemashree 

     

    Set the Text property of the Text label control to the following formula:

     

    If(
    IsEmpty(ComboBox1.SelectedItems),
    "The combo box has no Values",
    ""
    )

     

    Thanks!

     

    If my response has been helpful in resolving your issue, I kindly request that you consider clicking "Accept as solution" and "giving it a thumbs up" as a token of appreciation.

     

  • PowerStudent Profile Picture
    150 on at
    Re: Power Apps check if combo box is empty

    Hi,

    You can achieve this by setting the Text property of the Text label control based on the Items property of the Combo box. Here's how you can set it up:

     

    1. Select the Text label control.
    2. Set the Text property of the Text label to the following formula:
      If(IsEmpty(ComboBox1.Items), "The combo box has no Values", "")

      Replace ComboBox1 with the actual name of your Combo box control. This formula checks if the Items property of the Combo box is empty and, if so, sets the text of the label to "The combo box has no Values". If the Combo box is not empty, the label will display an empty string.

    3. Select the Button control.
    4. Set the OnSelect property of the Button to the following formula to force the Text label to update when the button is clicked:
      UpdateContext({forceRefresh: !forceRefresh})

       

      This uses a context variable forceRefresh to force the label to re-evaluate its Text property when the button is clicked.

      Make sure that you replace ComboBox1 with the name of your actual Combo box control.

       

      For more detailed support, book a consultation call with me here:
      Consultation: https://softwarezone365.com/contact-us
      PowerApps Blogs:
      https://softwarezone365.com/power-apps


      Should you appreciate my assistance and wish to support my work, you might consider:
      Giving this post a Thumbs Up.
      If applicable, marking it as the Solution.


      Support my work:
      PayPal: https://www.paypal.com/donate/?hosted_button_id=DASYHQAEETD2J


      Contact directly:
      Email: Contact@SoftwareZone365.com
      WhatsApp: https://wa.me/+923087478066


      Best regards,
      Ahmad Raza

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 632 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 386 Super User 2025 Season 2

#3
wolenberg_ Profile Picture

wolenberg_ 245 Moderator

Last 30 days Overall leaderboard