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-conditions
A button to precalculate all formula fields
Collapse
X
-
perhaps something you could use: https://forum.espocrm.com/forum/gene...las-by-formulaLeave a comment:
-
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.Leave a comment:
-
A button to precalculate all formula fields
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 exampleTags: None
Leave a comment: