Title: Calculated cmb Fields
Last modified: September 28, 2016

---

# Calculated cmb Fields

 *  Resolved [samchief](https://wordpress.org/support/users/samchief/)
 * (@samchief)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/calculated-fields-2/)
 * Is it possible to have calculated fields at the backend wherein the user enters
   values in field1 and field2, then field3 is a sum of the values entered in field1
   and field2.
    If posible, how? Thanks.
    -  This topic was modified 9 years, 10 months ago by [samchief](https://wordpress.org/support/users/samchief/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [9 years, 10 months ago](https://wordpress.org/support/topic/calculated-fields-2/#post-8231856)
 * I have to believe it’d be possible somehow, but there’s not readymade already
   done solution for it that I’m aware of. I know there are a number of filters/
   actions that could be used to manipulate field values before/after save, and 
   before/after fetching saved values. With those, you could do whatever you need
   with them, including manually updating other meta fields.
 * That said, it’d perhaps be easier to just do the math on the frontend before 
   the display of the value(s).
 *  Thread Starter [samchief](https://wordpress.org/support/users/samchief/)
 * (@samchief)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/calculated-fields-2/#post-8234452)
 * Mmmm, Sure the frontend does get that done easily.
    Thanks.
 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [9 years, 10 months ago](https://wordpress.org/support/topic/calculated-fields-2/#post-8235150)
 * Welcome.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Calculated cmb Fields’ is closed to new replies.

 * ![](https://ps.w.org/cmb2/assets/icon.svg?rev=2866672)
 * [CMB2](https://wordpress.org/plugins/cmb2/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cmb2/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cmb2/)
 * [Active Topics](https://wordpress.org/support/plugin/cmb2/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cmb2/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cmb2/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/calculated-fields-2/#post-8235150)
 * Status: resolved