Announcement

Collapse
No announcement yet.

A button to precalculate all formula fields

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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 example

  • #2
    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 it if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment


    • #3
      perhaps something you could use: https://forum.espocrm.com/forum/gene...las-by-formula

      Comment


      • #4
        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
        Last edited by telecastg; 02-24-2021, 05:55 PM.

        Comment

        Working...
        X