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

Combox Default for the first item

Hello,

 

I made a filter on a Combo Box, and i would like that combobox show me the first item as a Default.

 

Where can i do that?

 

Thank you

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Combox Default for the first item

Hi @Field ,

Could you please share a bit more about the formula you typed within the Items property of the Gallery?

 

Based on the needs that you mentioned, please take a try with the following workaround:

Set the DefaultSelectedItems property of the ComboBox to following:

 

First("Type the Items property formula of your ComboBox here")

 

 

E.G. Set the Items property of the ComboBox to following:

 

Filter('Data Source', FilterColumn = "xxxxx")

 

 Set the DefaultSelectedItems property of the ComboBox to following:

 

First(Filter('Data Source', FilterColumn = "xxxxx"))

 

 

You could also consider add a Dropdown control to list your values instead of the ComboBox control, in default, the first item/option would be selected within the Dropdown control.

 

Please consider take a try with above solution, check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Highlighted
Resident Rockstar
Resident Rockstar

Re: Combox Default for the first item

You can use the combo box's DefaultSelectedItems property. Set it to the same as your filter in the Items property surrounded by the First() function. For example:

First(Filter(ComboBoxSample,Value1<>"Item 1"))

---
If this answered your question, please click "Accept Solution". If this helped, please Thumbs Up. 

Highlighted
Community Champion
Community Champion

Re: Combox Default for the first item

Put this formula on the DefaultSelectedItems of the ComboBox:

First(YourtableName.Column)

Highlighted
Community Support
Community Support

Re: Combox Default for the first item

Hi @Field ,

Could you please share a bit more about the formula you typed within the Items property of the Gallery?

 

Based on the needs that you mentioned, please take a try with the following workaround:

Set the DefaultSelectedItems property of the ComboBox to following:

 

First("Type the Items property formula of your ComboBox here")

 

 

E.G. Set the Items property of the ComboBox to following:

 

Filter('Data Source', FilterColumn = "xxxxx")

 

 Set the DefaultSelectedItems property of the ComboBox to following:

 

First(Filter('Data Source', FilterColumn = "xxxxx"))

 

 

You could also consider add a Dropdown control to list your values instead of the ComboBox control, in default, the first item/option would be selected within the Dropdown control.

 

Please consider take a try with above solution, check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

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

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

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!

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