web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Textinputfield in gall...
Power Apps
Answered

Textinputfield in gallery do not fire onchange property if the field is not visible?

(0) ShareShare
ReportReport
Posted on by 12

Hi,

 

I'm making an app where the users have two inputs field ("Accepted" or "Not Accepted"). The user is then supposed to type in the number of accepted and not accepeted materials. The data source to the gallery is a collection "col_event_taskReturn". When any values is changed in the input field the collection should be updated. 

 

Kasper_L_0-1718343506171.png

To updated the collection I'm using onchange property,

 

 

Patch(
col_event_taskReturn, 
ThisItem, 
{ 
ACtemp: Value(item_appaccepted_1.Text)
}
);

 

 

 

everything is working fine if the input field is visible on the page. But the gallery contains of 20-30 records, therefor the user can't see all the records, and have to scroll down. The issues is then if the user is typing values into the textfield in the first record, and then have to scroll down to the button on the gallery to input another value. The collection is not updated with the value typed into the first record (onchange is not fired).  

 

I'm really stuck how to solve this issue? It seems like a bug in power apps? is there a workaround?

 

Categories:
I have the same question (0)
  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Kasper_L ,

     

    Yes, it's a known issue. Users need to click/tap somewhere else on the screen after filling in the text input box to trigger the OnChange property. Once the item leaves the display area, it will no longer be triggered.

     

    Best regards,

  • Kasper_L Profile Picture
    12 on at

    Thanks for the response @v-jefferni 

     

    My workaround is to use a forall just before all the data is saved to dataverse, just to be sure that everything is saved correctly 

     

    ForAll( Gallery1_8.AllItems, 
    Patch(col_event_taskReturn, 
    ThisRecord, 
    {
     REtemp: Value(item_scrap_2.Text), 
     ACtemp: Value(item_appaccepted_3.Text)
    }
    )
    );

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,033

#2
Valantis Profile Picture

Valantis 632

#3
11manish Profile Picture

11manish 607

Last 30 days Overall leaderboard