Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

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

  • AnalystPower Profile Picture
    9 on at
    Re: Need Dropdown with blank / null default

    Another solution is available without having to create and clear collections.

    AllowEmptySelection â€“ Whether the control shows an empty selection if no item has been selected. App users can also clear their choices by selecting the blank item.

    found Drop down control in Power Apps - Power Apps | Microsoft Docs

    AnalystPower_0-1648732431692.png

     

     

  • AHDeveloper Profile Picture
    6 on at
    Re: Need Dropdown with blank / null default

    Set the Default to "0" instead of "1"

  • Jacob Efron Profile Picture
    2 on at
    Re: Need Dropdown with blank / null default
    Hi,
    I am new to PowerApps Recently Completed My  PowerApps Training
    now we have a property called 'AllowEmptySelection' in powerapps. When Allow Empty Selection equals to true, it provides empty selection in drop down inside powerapps.
  • Hipromark Profile Picture
    7 on at
    Re: Need Dropdown with blank / null default

    Hello,

     

    I was looking for a similar solution and found out this is pretty simple to solve.

     

    Just put Zero in Properties > default and put True in 'Allow empty selection' , your drop down will show an empty value as default.

    null-value-drop-down.JPG

     

    I hope this works for you also.

  • AJ_vizMan Profile Picture
    on at
    Re: Need Dropdown with blank / null default

     

  • Community Power Platform Member Profile Picture
    on at
    Re: Need Dropdown with blank / null default

    Dear Carlos,

    the solution you propose has a strange side-effect in my app: the drop-down box will NOT select the default value automatically maybe because employeesWithBlank is a collection and not a Table. When I use the Table the drop-down selects the Parent.Default value correctly. In case of the collection it selects the 'empty' value. 

    Any hints to correct this?

    Thanx fro your support.

    Ciao,

    reinvdo

  • Community Power Platform Member Profile Picture
    on at
    Re: Need Dropdown with blank / null default

    Dear Carlos,

    your example works fine in case the table Employees has ONLY a Name column. 

    A generally correct formula would be:

     

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

     It took me some time to figure that one out 😃

     

    Ciao,

    reinvdo

  • Dawidvh Profile Picture
    1,346 on at
    Re: Need Dropdown with blank / null default

    Hi all

     

    Just a quick sidenote. The property is called AllowEmptySelection and not AllowUnsetSelection.

     

    But after posting this I saw that someone already mentioned this. Dope 😉

     

    Dawid van Heerden

    Follow on Twitter: @DavesTechTips

    Subscribe to YouTube: https://www.youtube.com/davestechtips?sub_confirmation=1

     

    **If you found this reply helpful, please give it a thumbs up and Accept as Solution to close the topic and make it easier to find for other people with similar questions.

  • Community Power Platform Member Profile Picture
    on at
    Re: Need Dropdown with blank / null default

    I am struggling with this as well.  I am using a dropdown control, and if I *change* either the Default or Reset, then I am presented with a drop down with nothing selected.  But once I select something, and stop and restart the App, the previous selection persists.  I think I need to start with the empty control, because I'm loading a gallery once the dropdown item is selected.  I don't want to load the gallery with the previously selected item.

  • Karl G. Schneider Profile Picture
    54 on at
    Re: Need Dropdown with blank / null default

    The old Advanced Property in DropDown DataCardValues named "AllowUnsetValue" has been renamed to "AllowEmptySelection"

    On Dropdown-DataCardValues you can set this "AllowEmptySelection" property to value "true" and the Default-Property to "" then you will have a blank default value in the Dropdowns. For all FormModes, of course

    It makes sense to set this Default-Blank only to FormMode.New otherwise each edit will update with blanks:

     

    If(SharePointForm1.Mode=FormMode.New, "", Parent.Default)

     

    Not available for Combo Boxes

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,700 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard