Skip to main content

Notifications

Enhancing Form Functionality in Power Apps: From FormLoad to FormLoaded

Enhancing Form Functionality with formLoaded

As developers, we understand that effective form handling is important for delivering a good user experience. Traditionally, many of us depend on â€śformLoad”, but this approach has significant drawbacks, such as inconsistent loading data and insufficient feedback during asynchronous data fetching, which can lead to user frustration.

In many projects, the formLoaded method has proven to be incredibly useful. It makes sure that every part of the form is completely loaded before users can start using it, which improves both reliability and performance. Research shows that using addOnLoad can create challenges with completing tasks afterward, especially when trying to set up data right as the form loads.

Let’s say John is working on an Employee Management System where he manages employee information. He ran into a scenario where he needed to load all employee data through an API when the form opens and initialize a field called â€śSalary.” Afterward, he needed to perform an additional step to calculate the â€śMonthly Tax.”

Enhancing Form Functionality with formLoaded


While working on this, John ran into two main issues:

  1. Data Retrieval Time: With over 20,000 employee records, pulling in all the data took a long time. The “Salary” field didn’t get filled until all the data was loaded, causing delays.
  2. Timing for Tax Calculation: During the form load, he couldn’t get the salary details quickly enough for the tax calculation step. The initial setup took about 5.23 seconds, and by the time it finished, the tax calculation process had already started, leading to empty or missing values for the salary....Read more>>
The post FormLoad to FormLoaded: Enhancing Form Functionality with formLoaded in Power Apps first appeared on Microsoft Dynamics 365 CRM Tips and Tricks.

This was originally posted here.

Comments