Detect Record Change On Form

Copper Contributor

I'm using a custom (PowerApps) form in a list on my SharePoint site. When the user clicks on a record in the list, the first page of the form appears and the OnVisible event for that page fires and runs a ClearCollect function related to the currently loaded record. This all works fine, as expected.

 

Here's the problem: When a user closes the form and then opens it again by clicking on another record in the SharePoint list, the OnVisible event does not fire again and therefore the ClearCollect function doesn't run for this new record. I have tried running ClearCollect from the App/OnStart event and run into the same issue. Refreshing the page solves this issue, but I can't expect the users to do that.

 

Question: How do I detect a change in the currently loaded record when using custom PowerApps forms in SharePoint?

0 Replies