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 / Lookup to populate ano...
Power Apps
Answered

Lookup to populate another text box

(0) ShareShare
ReportReport
Posted on by 59

Hi All, Sorry im a bit stumped and new to powerapps.

 

I have 2 sharepoint lists 

  • Contacts
    • Name
    • Email
    • PersonalNumber
  • MobileServices
    • Name 
    • AccountNumber
    • Simcard
    • NewNumber
    • SerialNumber

In powerapps i have a screen that has a name field That comes from the sharepoint list contacts. When its updated i need simcard number text box to be updated with the simcard number IF its in the mobile services sharepoint list otherwise leave blank for a new simcard number to be provisioned. 

 

Would the "Onchange" property on the name textbox be the right spot for to initiate a lookup to then populate the simcard text box?

Categories:
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Yes, OnChange would look something like this:

     

    Set(SimCardValue,LookUp(MobileServices,Name=LookUp(Contacts,Name=TextInput1.Text,Name),Simcard))

     

    and then on the SimCard textbox, set the default value to this:

     

    If(SimCardValue=false,Blank(),SimCardValue)

  • Verified answer
    v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @LeeJBS ,

    Just to correct his answer.

    on the SimCard textbox, set the default value to this:

    If(IsBlank(SimCardValue),Blank(),SimCardValue)

     

     

    Best regards,

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 347

#3
WarrenBelz Profile Picture

WarrenBelz 254 Most Valuable Professional

Last 30 days Overall leaderboard