Need to update multiple form fields on update of various inputs without code duplication

Hi, I've a form which has about 10+ fields which are calculated based on various input fields (including editable grid input fields). I need to figure out a way to have the calculation logic in one place so it can be managed without a lot of code duplication.

I want to avoid copy pasting the a!save for each calculated field into saveInto() of multiple input fields.

  Discussion posts and replies are publicly visible