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

When moving from TextInput to Button, OnChange is not triggered

We have an app with some input controls and a Button to go to the next screen.

 

When entering Text in a TextInput control, the data is stored from the OnChange event.

This event is triggered when going to another control, i.e. by using tab.

When clicking on the button directly after entering text, the OnChange event is not fired, so the data is not stored.

 

Is this a bug?

2 REPLIES 2
Community Support Team
Community Support Team

Re: When moving from TextInput to Button, OnChange is not triggered

Hi @JeroenL,

 

How is the code of OnChange function of your txetinput control configured?

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
JeroenL
Level: Powered On

Re: When moving from TextInput to Button, OnChange is not triggered

This is the code of the OnChange:

 

If(IsEmpty(Filter('PIM Product Attributes'; ProductNumber = Record100.ExternalProductNumber; AttributeId = "Commerciële beschrijving")); Collect('PIM Product Attributes'; {ProductNumber: Record100.ExternalProductNumber; AttributeId: "Commerciële beschrijving"; AttributeValueId: Commercieel}); Patch('PIM Product Attributes';Last(Filter('PIM Product Attributes'; ProductNumber = Record100.ExternalProductNumber; AttributeId = "Commerciële beschrijving")); {AttributeValueId: Commercieel}));;

 

So we either create or update a record in a table in the CDS. The control is not bound to a datasource.

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (4,864)