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

TextBox OnChange not running when removing text

Hello,

 

I am working on a form where I just need to check if the person has entered a value in specific fields.  I set the OnChange event of the textbox to this

 

If(!IsBlank(txtReceiving.Text)||txtReceiving.Text <> "" || txtReceiving.Text <> " ",
Patch(Val,First(Val),{receiving:true}),
Patch(Val,First(Val),{receiving:false}))

 

The issue I am running into is that the column in my collection will get updated fine if the user types any value into the textbox, but if they delete the value they typed into the textbox the OnChange Event does not seem to run.  Does the on change event run when text is cleared? 

1 ACCEPTED SOLUTION

Accepted Solutions
dwhittaker82
Level: Powered On

Re: TextBox OnChange not running when removing text

I figured it out.  All my mistake with the logic operators.  I should have used and instead of or operators

View solution in original post

1 REPLY 1
dwhittaker82
Level: Powered On

Re: TextBox OnChange not running when removing text

I figured it out.  All my mistake with the logic operators.  I should have used and instead of or operators

View solution in original post

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (10,327)