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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Autofill form through ...
Power Apps
Answered

Autofill form through sharepoint data

(1) ShareShare
ReportReport
Posted on by 23

Hi All, 

 

I currently have a sharepoint list that includes "employee name" as a single line of text and "gender" as a choice. 

 

When filling out a form via PowerApp I want to be able to type in the employee's name and if it matches the SharePoint list it will autofill the "gender" box. 

 

How would i go about making this? 

 

Categories:
I have the same question (0)
  • Verified answer
    Daniel Bocklandt Profile Picture
    5,117 Super User 2025 Season 2 on at

    Hey @minibee11 ,

     

    You can do it by putting in default of your dropdown 

    If(CountRows(LookUp(SharepointList, Name=TextBox.Text))=0,Blank(),LookUp(SharepointList, Name=TextBox.Text,Gender))

     

    Let me know if it helped you

     

     

  • minibee11 Profile Picture
    23 on at

    Hi Thanks for your reply. 

     

    This doesn't seem to work. 

     

    I forgot to mention in my original post that the via app form is based off a separate SharePoint list. 

     

    E.g. I have a sharepoint list 1 named "staff register" which has employees names and their gender. 

     

    I have created a sharepoint list 2 where I can input their leave applications. When inputting their leave applications i want to be able to type their name and their gender is autofilled based of sharepoint list 1

  • Daniel Bocklandt Profile Picture
    5,117 Super User 2025 Season 2 on at

    Hey @minibee11 ,

     

    Did the solution I provided return any error? 

     

  • minibee11 Profile Picture
    23 on at

    It says "Delegation warning. The highlighted part of this formula might not work correctly with column 'Full Name' on large data sets."

  • Daniel Bocklandt Profile Picture
    5,117 Super User 2025 Season 2 on at

    That won't be a problem. 

     

    Just a quick explanation: The delegation warning says it can't process more then 500 records. since with the lookup function the app only wants 1 record this will never cause any problem for you. If this should be the reason, why the code doesn't work you can simply ignore it.

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 445

#2
WarrenBelz Profile Picture

WarrenBelz 386 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 321 Super User 2025 Season 2

Last 30 days Overall leaderboard