cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Dropdown with Default as blank

Hi guys

I'm trying to set a Blank item in a dropdown as Default, this way the user has to select the dropdown to perform an action. The items of the dropdown come from a Sharepoint list and this list has an Item with " " (Without quotes) the problem is that I can't make this blank option appears first in the dropdown, I tried to sort Ascending and descending, the option appears but never as the first one

What can I do ? 

Thanks! 

1 ACCEPTED SOLUTION

Accepted Solutions
v-yuxima-msft
Community Support
Community Support

Hi @Anonymous,

 

Do you want the drop down’s start with one blank item?

You can set its Items property to a collection where the first element is blank.

Please try the following workaround.

 

For example I test as this:

Data Source: SP List: Job

20190122SPJob.jpg

App Test:

Add one button and Button1.OnSelect: ClearCollect(JobWithBlank,{JobName:" "}); Collect(JobWithBlank,Job)

Add one Drop down control and Dropdown1.items: JobWithBlank.JobName

20190122dropdownapptest.jpg

Then Result Test:

20190122dropdownresulttest.jpg

 

Hope this can be the reference for you.

Best Regards,

Yumia.

View solution in original post

4 REPLIES 4
v-yuxima-msft
Community Support
Community Support

Hi @Anonymous,

 

Do you want the drop down’s start with one blank item?

You can set its Items property to a collection where the first element is blank.

Please try the following workaround.

 

For example I test as this:

Data Source: SP List: Job

20190122SPJob.jpg

App Test:

Add one button and Button1.OnSelect: ClearCollect(JobWithBlank,{JobName:" "}); Collect(JobWithBlank,Job)

Add one Drop down control and Dropdown1.items: JobWithBlank.JobName

20190122dropdownapptest.jpg

Then Result Test:

20190122dropdownresulttest.jpg

 

Hope this can be the reference for you.

Best Regards,

Yumia.

Thank you very much, this worked to me. I'm using SP list as well. 

SwapnaNethi
Helper II
Helper II

@v-yuxima-msft 

Hi, in my case the JobName column is a choice column. In that case, the formula does not seem to work

AnalystPower
Frequent Visitor

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

 

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Top Solution Authors
Users online (4,757)