cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate I
Advocate I

Lookup to populate another text box

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?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Lookup to populate another text box

Hi @LeeJBS ,

Just to correct his answer.

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

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

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Highlighted
Super User
Super User

Re: Lookup to populate another text box

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)

Highlighted
Community Support
Community Support

Re: Lookup to populate another text box

Hi @LeeJBS ,

Just to correct his answer.

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

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

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (5,012)