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 / Auto Populate Form Usi...
Power Apps
Answered

Auto Populate Form Using Drop Down

(0) ShareShare
ReportReport
Posted on by 20

Hi all,

 

I'm looking to have a DataCard autopopulate from source data, using the selected value from another DataCard dropdown from within the same form. Specifically, have it so that the Customer Name selected on the drop down autopopulates that customer's correct Customer Postcode in the next DataCard.

BAER_Group_0-1674657198708.png

Both DataCards are looking up the same source data file, an Excel table 'Enquiry_Tracker' (which contains the Customer Name and Customer Postcode columns) however the form upon submission will update a separate source data excel file.

 

BAER_Group_1-1674657432131.png

Pictured here is the formula I've gone with, but as you can see by the error symbol, no luck.

 

I'm wondering how best to enable Customer Postcode to auto populate upon the selection of the customer name from the drop down which is pulling from the Enquiry tracker table?

 

Many thanks!

 

Categories:
  • Bilakanti Profile Picture
    1,226 on at

    @BAER_Group  use the below code.
    If(!IsBlank('Customer Name_DataCard5'.Selected),Lookup(Enquiry_Tracker, 'Customer Name' = Customer Name_DataCard5'.Selected.'Customer Name',' Customer Postcode')

  • BAER_Group Profile Picture
    20 on at

    Thank you @Bilakanti 

    I'm experiencing a new error message?

    BAER_Group_1-1674663591194.pngBAER_Group_2-1674666255833.png

    Any ideas?

  • Bilakanti Profile Picture
    1,226 on at

    @BAER_Group  can you show me what’s your data source and what is customer name column

  • BAER_Group Profile Picture
    20 on at

    @Bilakanti here are the relevant columns in the data source, which is the table in an excel file called 'Enquiry_tracker'

    BAER_Group_0-1674731810890.png

    BAER_Group_1-1674732143641.png

     

    Whilst I want the customer postcode DataCard in Power Apps to update with the information matching the customer name from this file, the form these DataCards are contained within will update a separate excel table upon submission.

     

    Thanks very much for your help

  • Bilakanti Profile Picture
    1,226 on at

    @BAER_Group Your datasource looks good to me then the formula should work for sure.

     

  • Verified answer
    WarrenBelz Profile Picture
    156,750 Most Valuable Professional on at

    @BAER_Group ,

    Apart from missing a closing bracket on that code and a small u in LookUp, you can be a bit more specific as below

    If(
     Len('Customer Name_DataCard5'.Selected.'Customer Name') > 0,
     LookUp(
     Enquiry_Tracker, 
     'Customer Name' = Customer Name_DataCard5'.Selected.'Customer Name'
     ).'Customer Postcode'
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

     

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 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 283

#3
Mohsin Ali Profile Picture

Mohsin Ali 221

Last 30 days Overall leaderboard