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

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
Meneghino
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
Meneghino
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/

Hey Meneghino,

 

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

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,287)