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

Process TextInput when Enter button pressed

Hello everyone,

 

I can't seem to figure out a simple action. I have a Text Input box that when when filled and the Enter button is pressed on the keyboard I want it to start a search process. I know I can add a "Search" button to accomplish this but I was hoping for a cleaner interface. Type in your search keywords and press Enter without having to take your hands away from the keyboard to grab a mouse or touch a screen.

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Champion
Community Champion

Hello @Ray_Garza

Actually it is even simpler than that.  I assume that you are searching in a data source's text field, and displaying the result of the search in a gallery.

Then, if your text input is called TextInput1, all you need to do is to set the gallery's Items property to:

Search (MyDataSource, Textinput1.Text, "MyTextFieldName")

PowerApps does everything else for you.

 

Reference: https://powerapps.microsoft.com/en-us/tutorials/function-filter-lookup/

View solution in original post

2 REPLIES 2
Community Champion
Community Champion

Hello @Ray_Garza

Actually it is even simpler than that.  I assume that you are searching in a data source's text field, and displaying the result of the search in a gallery.

Then, if your text input is called TextInput1, all you need to do is to set the gallery's Items property to:

Search (MyDataSource, Textinput1.Text, "MyTextFieldName")

PowerApps does everything else for you.

 

Reference: https://powerapps.microsoft.com/en-us/tutorials/function-filter-lookup/

View solution in original post

Hey Meneghino,

 

Thanks for the solution and the link! 🙂 Makes things a lot easier.

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Top Solution Authors
Top Kudoed Authors
Users online (102,600)