cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jayant1
Level: Powered On

Search Function for a Text Field

Hi All,

 

i am looking for a quick fix for my text field. So, i have a text field with control of dropdown values but it does not provide the functionality of find items within it. 
i want to make that search available within the textbox.
Hope you guys get it as i am really new to Powerapps. 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Search Function for a Text Field

Hi @jayant1 

 

You can directly use Combobox instead of dropdown to satisfy your condition, that would be a better option. You can enable the Allow Searching property to add the search box in the control.
 
If you still want to use text input, along with the Dropdown, you can use the below expression to filter dropdown results as:
 
Filter(DropDownSample,If(!IsBlank(TextInput1.Text),TextInput1.Text in Value,true))
 
Please replace DropDownSample with your DataSource and TextInput1.Text with your textinput control name.MicrosoftTeams-image (122).png

 

Hope this Helps!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
3 REPLIES 3
Super User
Super User

Re: Search Function for a Text Field

Hi @jayant1 

 

You can directly use Combobox instead of dropdown to satisfy your condition, that would be a better option. You can enable the Allow Searching property to add the search box in the control.
 
If you still want to use text input, along with the Dropdown, you can use the below expression to filter dropdown results as:
 
Filter(DropDownSample,If(!IsBlank(TextInput1.Text),TextInput1.Text in Value,true))
 
Please replace DropDownSample with your DataSource and TextInput1.Text with your textinput control name.MicrosoftTeams-image (122).png

 

Hope this Helps!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
Community Support Team
Community Support Team

Re: Search Function for a Text Field

Hi @jayant1 

 

Do you test with @yashag2255 's suggestion?

If it works fine,please accept it as solution.

 

More information:

function-filter-lookup

 

Best Regards.

Yumia

 

jayant1
Level: Powered On

Re: Search Function for a Text Field

i am not actually looking for @yashag2255  solution. i tried converting the textfield to combobox but i did not get as to wher i can change it from. 
Also the other solution would make the user to search in textfield first but i would want the user to search for item within the drodpwn values iteself as the combobox allows you to do so.

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Next Wednesday, September 18th at 8am PDT

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 124 members 3,934 guests
Please welcome our newest community members: