Title: Checkbox value
Last modified: August 21, 2016

---

# Checkbox value

 *  Resolved [Moiqc](https://wordpress.org/support/users/moiqc/)
 * (@moiqc)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/checkbox-value/)
 * Hi!
 * First, thanks for this great plugin!
 * I thought I would be able to find the answer for this one on google, but I can’t
   seem to find answers that I understand.
 * How can I use the checkbox values in the calculated field?
 * Ex:
    fieldname1: Make your choices: – choice one: 20$ – choice two: 40$
 * If user chooses one and two, how do I display the sum 60 in my calculated field?
 * I tried something like fieldname1.getField(“choice one”).value + fieldname1.getField(“
   choice two”).value and other similar guesses, but couldn’t find it.
 * Thanks!
 * [https://wordpress.org/plugins/calculated-fields-form/](https://wordpress.org/plugins/calculated-fields-form/)

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

 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/checkbox-value/#post-5159548)
 * Hi,
 * The answer is very easy, you only should use the field name fieldname1, the calculated
   field sums the choices values by itself;
 * If the user selects the choice one fieldname1 will be 20, if selects the choice
   two, fieldname1 will be 40, but if the user selects both choices, fieldname1 
   will be 60
 * Best regards.
 *  Thread Starter [Moiqc](https://wordpress.org/support/users/moiqc/)
 * (@moiqc)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/checkbox-value/#post-5159559)
 * Oh, indeed, I don’t know why it hadn’t worked the first time I tried it. Thanks
   for the prompt response!

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

The topic ‘Checkbox value’ is closed to new replies.

 * ![](https://ps.w.org/calculated-fields-form/assets/icon-256x256.jpg?rev=1734377)
 * [Calculated Fields Form](https://wordpress.org/plugins/calculated-fields-form/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/calculated-fields-form/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/calculated-fields-form/)
 * [Active Topics](https://wordpress.org/support/plugin/calculated-fields-form/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/calculated-fields-form/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/calculated-fields-form/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Moiqc](https://wordpress.org/support/users/moiqc/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/checkbox-value/#post-5159559)
 * Status: resolved