cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Community Champion
Community Champion

Re: Process TextInput when Enter button pressed

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
Highlighted
Community Champion
Community Champion

Re: Process TextInput when Enter button pressed

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

Highlighted
Advocate II
Advocate II

Re: Process TextInput when Enter button pressed

Hey Meneghino,

 

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

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

Top Solution Authors
Top Kudoed Authors
Users online (7,405)