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

Combo Box with Multiple columns

I'm trying to display a combo box on a form which will display several columns. I've searched the forums and I'm still not finding the answer, or at least I'm not figuring it out. Each record in the datasource list can have a value in Field1 that could be the same but Field2 varies and will help define which to select. Do I enter Field1 and Field2 in the DisplayFields like this?

["Field1","Field2"]

Because I've tried that and all I see is Field1 when I click the dropdown.

I am pretty new to PowerApps, so any help would be much appreciated.

 

Thank you

1 ACCEPTED SOLUTION

Accepted Solutions
vasanthapraba
Level: Power Up

Re: Combo Box with Multiple columns

Yes, you can add a new concotinate column in your Item mapped souce then map the newly created column in the displayfields.

Example :
To show the FirstName and LastName coulum in combobox of the 

ComboBox1.Items = AddColumns(Office365Users.SearchUser({searchTerm:cmbUsers.SearchText}),"GivenNameSurName",Concatenate(GivenName," ",Surname))

Then Map the newly added column into Displayfield

ComboBox1.DisplayFields = ["GivenNameSurName"]

ComboBox1.Searchfields = ["GivenNameSurName"]


Hope this will work for you!

Thanks,

Vasantha Praba.

5 REPLIES 5
Community Support Team
Community Support Team

Re: Combo Box with Multiple columns

Hi @Brian_,

 

If you want to have multiple columns binded to one combo box control, then I'm afraid that this cannot be achieved in PowerApps. According to the explaination in https://docs.microsoft.com/en-us/powerapps/controls/control-combo-box. Combo box control allows you to search for items you will select. Multiple items could be selected in one combo box, but not multiple columns. 

 

In addition, my understanding about your requirement is that, you want something like this:

Capture.PNG

 

If so, I think this even cannot be achieved in SharePoint list. The only similar thing I could think of is lookup column, but it is not quite the same as your need. If I misunderstood something, please feel free to correct me.

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Brian_
Level: Powered On

Re: Combo Box with Multiple columns

Hi v-monli-msft,

 

What I'm looking for is something similar to a lookup dropdown box you would get in an Access database where you can get numerous fileds displayed for each record so you can accurately select the record you want.

I don't want to select multiple columns, I want to select one record, which would be linked or idetified by it's ID field which is unique but not descriptive.

I would imagine there is a way to concatenate several fields to display in the combo box but I haven't been able to figure it out yet.

 

Thank you

JuP1
Level: Powered On

Re: Combo Box with Multiple columns

Hello,

 

Very interesting topic! @v-monli-msft, any news about a powerapps evolution? This is a usefull feature which exists for a very long time on access. 

yhlow
Level: Powered On

Re: Combo Box with Multiple columns

Hi @v-monli-msft

 

Im Also looking for similar request.

 

such as the form link from sharepoint list contain [field1 and field2].

 

Sharepoint list, may be called (DynamicList)

[Field1] -------------[Field2]

Application - - ---- G/L

Application - - ---- Inv

Regions - - -------- Asia

Regions - - -------- Europe

Regions - - -------- US

 

 

The form wil  have this 2 dropdown (Multiselect)

 

Sharepoint List, called "Request"

Application : (Selection pull from the Dynamic list from the above list, filter and restrict to "Applications" Only") 

Regions : (Selection pull from the Dynamic list from the above list, filter and restrict to "Regions" Only") 

 

and then the form will save to the sharepoint list "Request"

 

issue is i can created the datasource to sharepoint dynamic list, but when come to list with filter i cant seem to be able to do that for the multiselection.

vasanthapraba
Level: Power Up

Re: Combo Box with Multiple columns

Yes, you can add a new concotinate column in your Item mapped souce then map the newly created column in the displayfields.

Example :
To show the FirstName and LastName coulum in combobox of the 

ComboBox1.Items = AddColumns(Office365Users.SearchUser({searchTerm:cmbUsers.SearchText}),"GivenNameSurName",Concatenate(GivenName," ",Surname))

Then Map the newly added column into Displayfield

ComboBox1.DisplayFields = ["GivenNameSurName"]

ComboBox1.Searchfields = ["GivenNameSurName"]


Hope this will work for you!

Thanks,

Vasantha Praba.

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

Follow PowerApps on Twitter

Stay Up-to-Date by following PowerApps on Twitter

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

Users Online
Currently online: 40 members 4,222 guests
Please welcome our newest community members: