Calculating field value based on other fields

Does SuiteCRM include the option to insert dynamic/calculated fields?

When I create a new field I can’t see the option to do this.

You help is appreciated.

Hello,

That is not yet supportted

1 Like

You have to do it in a before_save logic hook, $bean->field = $bean->field1 + $bean->field2

1 Like

Thank you!

Would I need to customise the code for that or is there somewhere via Studio I can enter that expression?

No, this is outside of the features available in the web interface.
http://support.sugarcrm.com/02_Documentation/04_Sugar_Developer/Sugar_Developer_Guide_6.5/03_Module_Framework/Logic_Hooks/02_Module_Hooks/before_save/

1 Like

Again thank you, I am wary of the “infinite loop” situation but will try it and see how I get on.