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 / Set TextInpue Value fr...
Power Apps
Answered

Set TextInpue Value from Collection

(0) ShareShare
ReportReport
Posted on by 209

Hi,

Would really appreciate some help with a little process I am working on.

I have a NewVisitorsScreen where visitor enters details, name and phone number, then on click a button to Patch data to SQL table.

I am trying to put a process in where, if the user types in a phone number in the NewVisitorsScreen which already exists in the SQL table, it redirects to the ReturningVisitorScreen and populates a TextInput box which is setup as a search field.


I have a button in the NewV screen with a lookup to check if the phone number exists in SQL and enable the button if it does.

Then the onselect of the button creates the collection with the phone number, and navigates to the ReturningVisitorScreen

I can get the data I want from the NewVisitorsScreen into a collection, but not sure how to put that collection data into the search field on the Returning screen.


Any suggestions would be greatly appreciated.

Categories:
I have the same question (0)
  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi kevinsray 

    You could try the following:

     

    Set the Default value of your search field to:

    First(Collection).Phonenumber

     

    This works if the collection only includes one row with the phone number, or if the phone number in the first row is the correct one.

     

    If the collection includes multiple rows then you may need to filter it before you return the value.. Perhaps something like this, filter it so that the first phone number becomes the correct one:

     

    First(
    Filter(Collection, filtercondition1, filtercondition2)
     ).Phonenumber

     

  • kevinsray Profile Picture
    209 on at

    DanielaH,

    You are amazing.
    Exactly what I wanted. Only took me a couple of days of searching to get the nerve up to post and kaboom, perfect answer straight away. Thank you so much.

     

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 534

#2
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 306

Last 30 days Overall leaderboard