cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
egallis
Level 10

How To - TextInput.OnChange without pressing ENTER key

Hi all,

Anyone would have an idea of how to trigger the OnChange event of a TextInput control wihtout pressing the ENTER key but by just modifying its content.

I want to use this TextInput control as a filter for a gallery and I want the gallery to filter as the user types characters in the text input control (wihtout having to press the ENTER key).

Thanks,

Emmanuel

2 REPLIES 2
PowerApps Staff CarlosFigueira
PowerApps Staff

Re: How To - TextInput.OnChange without pressing ENTER key

If the Items property of your gallery references the content of the text input control directly, then it will be filtered based on when the user is typing on it. For example, if you have your gallery Items property set to

Filter(MyDataSource, StartsWith(MyColumn, TextInput1.Text))

then you should achieve what you want.

Hope this helps!

egallis
Level 10

Re: How To - TextInput.OnChange without pressing ENTER key

Hi @CarlosFigueira,

Yes of course, I know this is possible. But in some cases, we can't reference the label text value directly in the gallery datasource property.

My post here is rather to outline that some controls don't have their events triggered when they should be as their meaning is clearly specified in the PowerApps editor.

Here is the example of the checkbox control:

  • the Checked event of a checkbox control is described as is: Behavior run when the visual is checked
  • the event IS triggered when clicked -> OK
  • but if you check it through another control (say, a button using a variable), then the event IS NOT triggered even though IT IS checked!

I'm having a hard time finding some sense in this behavior... What's your (or others) opinion on this ?

Emmanuel

Helpful resources

Announcements
firstImage

PowerApps Monthly Community Call!

Join us next Wednesday for our Demo Extravaganza, October 16, 2019 8am PDT.

firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

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: 336 members 4,456 guests
Please welcome our newest community members: