cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

Set Default Selection of Combobox

This works fine yesterday but when I open it a while ago I don't know what happened! -.- My dropdown doesn't have a default value. Even though it works fine yesterday!!!  I really am pissed off!

See the Screenshot first.

I need to always set the default of dropdown to. Index 0 (Which is the start of choices)But the start of the choices is blank! I need to default the 1st choice of dropdown. [Not the blank one]

Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: Set Default Selection of Combobox

Yes, I noticed the same. Now they show blank as default.
I did the following: 
For those that I didn't have a default value I added
Dropdown1.Default: First(CollectionName).ColumnName
and for those that I had a default value 
Like Dropdown2.Default: vDefaultValue
I changed it to
Dropdown2.Default: If(LookUp(CollectionName,vDefaultValue=ColumnName,true),vDefaultValue,First(CollectionName).ColumnName)

View solution in original post

6 REPLIES 6
Highlighted
Frequent Visitor

Re: Set Default Selection of Combobox

Hi.

 

I have the same issue. Each dropdown has some kind of default blank row now. The main problem is that whole app is desorded and cascading dropdowns have to be selected in order... (I cannot simply select dropdown in the middle of form before I have selected each dropdown before).

 

Any ideas?

 

 

Highlighted
Super User
Super User

Re: Set Default Selection of Combobox

Yes, I noticed the same. Now they show blank as default.
I did the following: 
For those that I didn't have a default value I added
Dropdown1.Default: First(CollectionName).ColumnName
and for those that I had a default value 
Like Dropdown2.Default: vDefaultValue
I changed it to
Dropdown2.Default: If(LookUp(CollectionName,vDefaultValue=ColumnName,true),vDefaultValue,First(CollectionName).ColumnName)

View solution in original post

Highlighted
Helper I
Helper I

Re: Set Default Selection of Combobox

But I am not using any data source to populate my dropdown just.

Dropdown.Items = ["1", "2"]

just like that

Highlighted
Super User
Super User

Re: Set Default Selection of Combobox

Then you can add
Dropdown.Default = "1"

Highlighted
Helper I
Helper I

Re: Set Default Selection of Combobox

Nooo That's just an example.

I have many different options, and the dropdown will vary on that option. I can't do that as you say. I just need to set the default to Index[0]. Not a blank one.

Highlighted
Super User
Super User

Re: Set Default Selection of Combobox

I can understand your confusion. I hope you will find a solution to your issue.

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Community Highlights

Check out whats happening in Power Apps

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 (10,099)