cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Power Apps Staff CarlosFigueira
Power Apps Staff

Re: Need Dropdown with blank / null default


@svenvu wrote:

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?

 


The combobox has, since it was introduced, supported empty selection, so there's no need to set any property for that.

svenvu
Level: Powered On

Re: Need Dropdown with blank / null default

Hi Carlos

 

Thank you for looking into this!

I have documented the specific usecase in this topic that is now removed from the spamfolder:

https://powerusers.microsoft.com/t5/General-Discussion/Why-is-there-no-AllowUnsetValue-property-for-...

 

And I found the solution in your blogpost:

https://powerapps.microsoft.com/en-us/blog/default-values-for-complex-sharepoint-types/

 

In the DefaultSelectedItems property from the combobox I had to enrich the formula with: If(EditForm1.Mode=FormMode.Edit;....;Blank()). I would not have guessed that myself. You're always welcome to screen the topic and give advise for best practices 🙂

 

Big thanks!

Cameron1
Level: Powered On

Re: Need Dropdown with blank / null default

There's a problem with this feature, once you select a value, you cannot select the blank value again.  It's removed from the list.

SchneidAIR
Level: Powered On

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

Highlighted
MXJ
Level: Powered On

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.

Helpful resources

Announcements
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (9,578)