Notifications
Announcements
I have developed a custom form for a SharePoint list. I want to execute some code that essentially rebuilds a collection whenever the form opens.
The code itself is correct because it works perfectly when triggered by a button. However, I would like it to run automatically when the form opens, without needing to use a button.
This would allow the data in the custom form to be displayed correctly every time a user opens it from the SharePoint list.
I have tried the OnStart event, as well as the OnVisible event of the form's screen, but it seems that the code is being ignored.
OnStart
OnVisible
Any suggestions?
Thank you.
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 717 Most Valuable Professional
Michael E. Gernaey 329 Super User 2025 Season 2
Power Platform 1919 268