cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sajarac Kudo Kingpin
Kudo Kingpin

Showing a value after a combo box selection

Hi there, silly question here, but I am tired of reading post and posts without any luck.

 

I have a sharepoint list with two columns Name and Region.

 

In my app I have a dropdown menu that shows all of the names, so far so good, but I want a label that show the region once the name has been selected.

 

I have been trying lookup but nothing works.

 

Any help?

 

thanks in advance

1 ACCEPTED SOLUTION

Accepted Solutions
sajarac Kudo Kingpin
Kudo Kingpin

Re: Showing a value after a combo box selection

Nevermind, Sorry.

 

It works!!!!

 

LookUp(SRList,Title=CboAssessors.Selected.Title,Region)

 

Thank you very much 

 

🙂

View solution in original post

6 REPLIES 6
Super User
Super User

Re: Showing a value after a combo box selection

Hi @sajarac,

A Dropdown or Combobox control contains all of the columns in a record of the dataset that is it's Items property although it only displays one of them in the window of the control.  However, all of the other columns in the list can be accessed by other controls that reference the Dropdown or Combobox control.  The formula that you are looking for in your label is 

Lookup(YourListName,ID=Combobox1.Selected.ID,Region)

Where YourListName is the name of the Items property of your Combobox control.  If you had more columns in your list, you could reference any of them and prepopulate a gallery with labels referring to each of the columns. 

sajarac Kudo Kingpin
Kudo Kingpin

Re: Showing a value after a combo box selection

Thank you very much for your prompt reply, so my data is like this:

 

The Share point list = SRList

Name = Title

Region = Region

 

My combobox for the name is = CboAssessor

 

and the label for my region = LblRegion

 

So the formula should be:

 

Lookup(SRList,ID=CboAssessor.Selected.ID,Region)
Super User
Super User

Re: Showing a value after a combo box selection

Looks right to me.  If the region is a choice or lookup type column you will need to add a .Value to the formula.

Lookup(SRList,ID=CboAssessor.Selected.ID,Region.Value)

Does it work?

Highlighted
sajarac Kudo Kingpin
Kudo Kingpin

Re: Showing a value after a combo box selection

Unfortunately no, "Invalid Argument Type"

sajarac Kudo Kingpin
Kudo Kingpin

Re: Showing a value after a combo box selection

Nevermind, Sorry.

 

It works!!!!

 

LookUp(SRList,Title=CboAssessors.Selected.Title,Region)

 

Thank you very much 

 

🙂

View solution in original post

Super User
Super User

Re: Showing a value after a combo box selection

smiles - Copy.gif

 

 

Helpful resources

Announcements
secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Top Solution Authors
Top Kudoed Authors
Users online (8,420)