web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Help populating text b...
Power Apps
Answered

Help populating text box based on value of drop down

(0) ShareShare
ReportReport
Posted on by 1

 Good morning,

I am trying to populate a text box based on cascading dropdown boxes. I have gotten the Cascading Dropdown Boxes to work, but cannot get the text field to populate. I want to be able to select a Community and then the Trade from the community, and the app populate the Trade Name, Contact, Phone Number, and Email.

Any help would be appreciated. 

 

Table1.JPG
Capture.JPG
Categories:
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    Although the names of your description and your table don't align, I will make the assumption that you are trying to get the Company, Contact, Phone Number, and Email fields from your datasource.

     

    In that case, the step would be to do a lookup on it:

       Lookup('Comm.Trade', Community=DropDown_Comm.Selected.Value && DropDown_Trade.Selected.Value)

     

    I would assign this to a variable to make it easy and would do so in the OnChange action of the DropDown. Something like:

      UpdateContext({selectedTrade:Lookup('Comm.Trade', Community=DropDown_Comm.Selected.Value && DropDown_Trade.Selected.Value))

     

    Then for your text boxes:

    set the text of Trade Name to selectedTrade.Company

    set the text of Contact to selectedTrade.Contact

    set the text of Phone Number to selectedTrade.'Phone Number'

    set the text of Email to selectedTrade.Email

     

    Hope this helps.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 224 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 126

Last 30 days Overall leaderboard