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 / Click name from list b...
Power Apps
Answered

Click name from list box and then display on text input

(0) ShareShare
ReportReport
Posted on by 997 Super User 2024 Season 1

Hi, I have this text input and a list box. When I typed in the text box, based on the 

//listBox.items
Office365Users.SearchUser({searchTerm:TextInput1_1.Text})

the suggestion will come up like the picture below.

syhrh_1-1662454823572.png

How to make the text input is filled with the name I clicked in the list box? For example, I typed in 'In', then the suggestions come up and then I click Info and then the text input will be 'Info'.

 

Thank you.

 

Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,748 Most Valuable Professional on at

    Hi @syhrh ,

    OnSelect of the List Box

    UpdateContext({varUser: Self.Selected.DisplayName})

    Default of the Text Box

    varUser

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

     

  • syhrh Profile Picture
    997 Super User 2024 Season 1 on at

    Hi @WarrenBelz,

    your way works. Thank you. 

     

    How to make the list box disappear after clicking the name?

    syhrh_0-1662467867708.png

     

     

  • WarrenBelz Profile Picture
    156,748 Most Valuable Professional on at

    Hi @syhrh ,

    Set the ListBox Visible to

    IsBlank(varUser)

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • syhrh Profile Picture
    997 Super User 2024 Season 1 on at

    Hi @WarrenBelz, it works. Thank you for your help. 

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

#2
M Bilal Khan Profile Picture

M Bilal Khan 312

#3
Mohsin Ali Profile Picture

Mohsin Ali 252

Last 30 days Overall leaderboard