Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

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

(0) ShareShare
ReportReport
Posted on by 10

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:
  • Kasper_L Profile Picture
    10 on at
    Re: Textinputfield in gallery do not fire onchange property if the field is not visible?

    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)
    }
    )
    );

     

  • Verified answer
    v-jefferni Profile Picture
    on at
    Re: Textinputfield in gallery do not fire onchange property if the field is not visible?

    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,

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,702 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard