cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

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
Highlighted
Frequent Visitor

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
Highlighted
Frequent Visitor

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
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

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

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

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