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 / Need Dropdown with bla...
Power Apps
Unanswered

Need Dropdown with blank / null default

(3) ShareShare
ReportReport
Posted on by 15

How do you handle the default of a drop down when you want it to always be blank when opening? I have played with the default value and it always loads the first item no matter what I do.  The Items are coming up from an on-premise SQL database. Example: I have 4 drop downs for staff members that maybe on a truck, only the first one will be required and I want the app user to start with all blanks and fill in as needed

Categories:
I have the same question (0)
  • mveroukis Profile Picture
    3 on at

    Is there a blank entry in the collection used for the dropdown? If not, try adding one.

  • Verified answer
    CarlosFigueira Profile Picture
    on at

    If you want to start with a blank item in the dropdown, you can set its Items property to a collection where the first element is blank. For example, if you get the possible choices from a table 'Employees' and you display the Name property in the dropdown, you can have this expression in the screen's OnVisible property:

    ClearCollect(employeesWithBlank,{Name:""}); Collect(employeesWithBlank,Employees)

    Then you can set the collection 'employeesWithBlank' as the Items property of your dropdown control.

     

    Notice that the dropdown currently has a bug in which blank entries appear with a smaller height (can be hard to select on small screens, such as phones). You can work around this by defining the name as a 'non-breaking space':

    ClearCollect(employeesWithBlank,{Name:Char(160)}); Collect(employeesWithBlank,Employees)

    In this case you'll have the first option in the dropdown showing the same format as the others.

  • miglisic Profile Picture
    on at

    FYI: The smaller height bug will be fixed in the 710 release.

     

  • Shamrock Profile Picture
    8 on at
    Hi, I am new to PowerApps and have
    a similar problem with a dropdown field. My Items property of the dropdown are coming from an on-premises SQL databas table as well. I’ve tried using the suggested collection, but it only works for the new form when adding a new record. When editing an existiing record, the dropdown is blank but it should have been a pre-selected value.It used to work properly without using the collection. Any suggestions? Thank you!
  • Shanescows Profile Picture
    2,218 Most Valuable Professional on at

    @Shamrock Share a screenshot of the value for items and default for the dropdown and I bet we can figure it out. 🙂 

  • Shamrock Profile Picture
    8 on at

    Hi @Shanescows, Thank you so much for getting back to me. I've resolved it by filtering the Editform. mode. 🙂

  • svenvu Profile Picture
    47 on at

    How did you manage to do the last step? Can you provide more details? I know this is an old post, if someone else can help, please advise as I'm stuck.

    • The dropdown is blank when a new item is created in the EditScreen of the form ==> this is correct
    • But when I change an existing item from the DetailScreen of the form, the dropdown is also blank while I'm expecting a preselected item that is passed from the DetailScreen
  • CarlosFigueira Profile Picture
    on at

    The dropdown control now has a new property that allows it to have empty defaults. Check for the AllowUnsetValue property in the control, and if you set it to true, you should be able to set the Default property to a blank value, and you'll start the dropdown without a selection.

  • svenvu Profile Picture
    47 on at

    Thank you Carlos! I discovered this new property yesterday and started a new topic that is waiting for approval because it's marked as spam. This is the best property ever! But unfortunately not available for comboboxes 😞 

    Now my gallery form is almost perfect but I can't change the combobox (with single select and search) to a dropdown because it contains a list of thousands of employee names (from the Office365-connector). Is there any chance this property could be made available for comboboxes?

     

    I think this is also great for a blog post as this property deserves to be in the spotlight because a lot of people are searching for a solution and this property makes it so easy . Often a dropdown/combobox has to be empty so the user must select something.

     

    Friendly Greets

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard