Hi Members,
I have a requirement in Power Apps where I want to check if combo box is empty
Scenario:
Can anyone please suggest how I can resolve this? Thanks in advance!
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.
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:
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.
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-usPowerApps 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.comWhatsApp: 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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 836 Most Valuable Professional
Michael E. Gernaey 327 Super User 2025 Season 2
MS.Ragavendar 231 Super User 2025 Season 2