cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Jrldscrpz
Level: Powered On

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
Mike8
Level 10

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
Miesadlo
Level: Powered On

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?

 

 

Mike8
Level 10

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

Jrldscrpz
Level: Powered On

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

Mike8
Level 10

Re: Set Default Selection of Combobox

Then you can add
Dropdown.Default = "1"

Jrldscrpz
Level: Powered On

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.

Mike8
Level 10

Re: Set Default Selection of Combobox

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

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (6,652)