Auto calculate values on the List Grid
Introduction
The auto-calculation feature in the List Grid within Joget forms allows for dynamic and real-time data computation, enhancing applications' functionality and interactivity. This feature is essential for forms with editable columns that require automatic updates based on user input, simplifying calculations such as totals from quantities and amounts. Integrating a simple JavaScript code into a Custom HTML element in your form allows the List Grid to display calculated results, reducing errors and saving time instantly.
How does it work?
For a practical example of setting up this feature, see the steps outlined below:
- Download the demo app, which includes features like EnjoyHint for customizable hints and an example of auto calculation in a List Grid.
- Add a Custom HTML element to your form. This will serve as a container for the JavaScript required for auto calculations.
- Insert the following JavaScript code into the Custom HTML element. This code will detect changes in the List Grid and automatically compute and display the calculated results.