Its will be very useful to have ability to calculate all fields which set with formula when a user creating new object. A button "Recalculate" near Save and Cancel buttons for example
A button to precalculate all formula fields
Collapse
X
-
There's no point in this. When a record is created, formula is calculated upon creation. Before record is created, it's not possible to calculate anything.If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks. -
-
Formula is a "user friendly" way to create back end hooks without regular php coding, so as yuri explained, it requires a record to exist.
If you are looking for a way to use calculated fields before a record exists you could create a dynamic handler for the entity and write your computation logic there instead of using formula.
You can learn about the dynamic handler class in these posts:
https://forum.espocrm.com/forum/deve...gic-conditionsLast edited by telecastg; 02-24-2021, 05:55 PM.Comment
Comment