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 fields b...
Power Apps
Answered

Auto-Populate fields based on other field value entered

(0) ShareShare
ReportReport
Posted on by 27

Hello,

I am very new to Powerapps. I have a simple question,

I have already connected excel table to my app. So when a user wants to submit a new form, based on the item number entered by the user, the product name field must be automatically filled in. The excel data base contains all the Item Numbers and the respective product names.

Looking forward for your support.

 

Categories:
I have the same question (0)
  • Verified answer
    eka24 Profile Picture
    20,925 on at

    You will have to use a lookUp. Assuming Table1 is the Excel Table with ID and ProductName as columns.

    If the user Input ID into Textbox1, then in Default of TextBox2, put:

    LookUp(Table1, ID=Value(Textbox1.Text),ProductName )

     

    Or

    LookUp(Table1, ID=Textbox1.Text,ProductName )

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

    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.

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi@akashsaraswat19,

    Based on the issue that you mentioned, I discovered that you have proposed a similar case which has been marked solved. Is there anything unsolved, could you please share more about your scenario?

    We are used to using LookUp() when it comes to auto-populating one field based on another field filled. This function is easier and efficient.  

    Since you mentioned that this autofill issue is related to submitting a new form, I think there is something different from the case you proposed before.

    I have a test on my side, you can take a try as below.

    Set the Default property of the data card belonging to product name as below

    If(EditForm1.Mode=FormMode.New,LookUp(Employees,EmployeesId=DataCardValue3.Text,EmployeesName))​

     

    On your side, you can write as below

    If(EditForm1.Mode=FormMode.New,LookUp(Table1,ItemNumber=DataCardValue3.Text,ProductName))​

    Note: DataCardValue3 represents by the control belonging to Item Numbers in your Form.

    You can also check the GIF attachment for reference.0004.gif

     

    Best Regards,

    Qi

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi@akashsaraswat19,

    Have you solved your issue?

    If it solves your request, Mark it as a Solution to enable other users to find it.

    Best Regards,

    Qi

  • David8 Profile Picture
    89 on at

    This is the solution I am looking for but I can't seem to make it work in my scenario. Here is a screenshot.

     

    David8_0-1612743275109.png

    I want the number 1260 to come from a collection I created called ccCatalog. When I lookup the number, 1260, I want the name of the project field contained in the collection to appear. The data is saving to a SharePoint list.

     

    Would appreciate some help. Thank you in advance.

     

  • David8 Profile Picture
    89 on at

    Right after I submitted my request, I figured it out. I'm placing the formula here in case it helps someone else.

    LookUp(ccCatalog, 'ISSR Number' in TXAnalystISSR.Text ).'Project Name'

     

  • misterjonih Profile Picture
    85 on at

    hi @v-qiaqi-msft 

    can I use Search function in multiple field?

  • Adwene Profile Picture
    24 on at

    Good day

    Can you please assist me also

  • Adwene Profile Picture
    24 on at

    Good day

    I'm new to Powerapps. Can you please assist me. I followed the GIF but can't seem to get it right.

    I need the Employee name to be auto-populated based on  Persal no entered. second screenshot is my SP list.

    Adwene_0-1643016774630.png

    Adwene_1-1643016798942.png

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I have a SharePoint list with StartDate and EndDate. WeekNumber. Based on the Todays date, I need to compare between Start and End Date and autopopulate the week number in my powerapps. For eg: StartDate : 2/27/2022 and EndDate: 3/5/2022, the WeekNumber is 1. I have totally 52 weeks. Need some pointers.

    abiman_1-1647720623089.png

     

     

  • TKSHEP Profile Picture
    212 on at

    I am trying to auto populate the status field to Submitted to Supervisor, I am unable to find a var for the status filed in my sharepoint list.  and the one Var that shows up does not work.  Any suggestions or work arounds?

    tkshepley_0-1657804285200.png

    Thank you!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard