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

Notifications

Announcements

Community site session details

Community site session details

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

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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard