cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Regular Visitor

Using dropdown to populate a label

I am currently trying to get a label to populate with a name when a number is select from a drop down. 

 

For example if 1 is select then the label will fill with john smith, 2 would fill the label with Jane doe. 

 

The current code I have is below. and I am putting this in the text function of the Label

 

Lookup('Sharepointlist', 'Number' = DataCardValue1.Selected.Value).'Name'

 

From looking at other posts this should work, but for me it seems to take the first value in the sharepoint list to be the default and then not change to the other names when a number is selected. 

 

Any help would be appreciated. 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User III
Super User III

Try

Lookup(Sharepointlist,Number=DataCardValue1.Selected.Value,Name)

 

If it doesn't work show the dropdown items

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

 

View solution in original post

1 REPLY 1
Super User III
Super User III

Try

Lookup(Sharepointlist,Number=DataCardValue1.Selected.Value,Name)

 

If it doesn't work show the dropdown items

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

 

View solution in original post

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (33,603)