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

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.

Highlighted
Advocate IV
Advocate IV

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!

Highlighted
Frequent Visitor

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.

Highlighted
Advocate II
Advocate II

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
Frequent Visitor

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.

Highlighted
Super User
Super User

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.

Helpful resources

Announcements
Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,085)