cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Phishdawg
Helper II
Helper II

Dropdown Filters List and Populates Adjacent Text Field

I have a three cascading dropdown fields (State City, Airport All of the dropdowns work fine and perform the cascade filtering action desired.

 

The City dropdown (DD2) returns abbreviations of the Cities. I have a 'Text' field adjacent to DD2 that I'd like to be auto-populated by the actual City name by filtering the list based on the result of DD2 (City).

 

I'm currently using    Distinct(Filter(AirprtLst, City = DD2.Selected.Result),Commercial)   to filter data into DD3 (it works fine). However, when I try that same formula in the 'Input' field (changing "Commercial" to "FullCityNm") I get an error message.

 

Can someone tell me how to use auto-populate a free standing (just on the canvas; not in a Gallery, Table or Form) 'Input' wit the Full City Name based on the abbreviated City Name chosen in DD2?

 

Thank you,

1 ACCEPTED SOLUTION

Accepted Solutions
eka24
Super User III
Super User III

In the default of the textbox put:
LooksUp(AirprtLst, City = DD2.Selected.Result,ActualCity)

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

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

3 REPLIES 3
eka24
Super User III
Super User III

In the default of the textbox put:
LooksUp(AirprtLst, City = DD2.Selected.Result,ActualCity)

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

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

Perfect; thanks!

Uh oh; spoke too soon. The filter does pull back the first line of data from the list. So we know the connection is there; however, the contents of the Text field do not change based on a change in the choice in the DD. If I pick another City in the DD the text in the Text field should change to reflect the full name of that City and so on.

 

Current Filter Being Used: Lookup(AirprtLst, City = DD.Selected.Result,CityName)   Returns First City; but doesn't change with DD.

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Did you miss the call? Check out the recording here!

Top Solution Authors
Top Kudoed Authors
Users online (27,871)