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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Validate dropdown/comb...
Power Apps
Unanswered

Validate dropdown/combobox is not blank

(1) ShareShare
ReportReport
Posted on by 270

I am attempting to check if a dropdown box has an option selected but cannot find the syntax.

 

My test is to simply update the context of a label to true/false but  Icannot work it out

 

I am placing this on the OnChange event of the dropdown.

 

If(IsBlank(SelectedRegion.Selected),UpdateContext({Test:true}),UpdateContext({Test:false}))

 

I also tried SelectedRegion.Selected.Value and SelectedRegion.Selected.Value=""

 

Does IsBlank work with dropdows? I have tried IsEmpty also.  

 

I need this for comboboxes with multiple choices also -  Iassume once I get it right I will simply need to change from Selected to SelectedItems for a multiple choice option.

 

Any assistance is appreciated.

Categories:
I have the same question (0)
  • Verified answer
    Gargoolgala Profile Picture
    270 on at

    I beleive I have this sorted out.

     

    IsBlank does not work - IsEmpty does work.

    If(IsEmpty(dcvServerOS.SelectedItems.Value),UpdateContext({Test:true}),UpdateContext({Test:false}))

     

    The problem was more me - I was used to a dropdown single select as using .Selected instead of .SelectedItems - I think this is a legacy from before the new combo box which is more generic now and allows for multi-select.

     

    I removed the older dropdown and brought in a newer combobox and it worked.

  • AiCrEn Profile Picture
    14 on at

    Hello,

     

    i found a good code :

     

    IsBlank(dcvServerOS.Selected.name_of_your_data_column)

     

    Best regards

     

    JP

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 793 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 333 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard