Title: Checkboxes help
Last modified: August 13, 2024

---

# Checkboxes help

 *  Resolved [metesey](https://wordpress.org/support/users/metesey/)
 * (@metesey)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/checkboxes-help/)
 * I made a form with 14 options in the fieldname17 field of Checkboxes. The options
   in this field can be selected multiple times.
 * I wanted to write a formula that will give a result of 1 when the “paper holder
   will be attached” item with a value of 8 is checked. I wanted to write a formula
   that will give a result of 0 when it is not checked. The formulas I tried for
   this.
 * first formula: if(fieldname17==8,1,0)
 * second formula: if(in(8,fieldname17|r),1,0)
 * Both formulas work only when the value 8 is selected. However, if multiple other
   values other than 8 are selected, this time it returns the result as 0. Is there
   a solution for this? When a desired value is checked in the checkboxes, it should
   give a value of 1 when checked and 0 when unchecked and not be affected by other
   options.
 * Thank you in advance for your help.

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

 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/checkboxes-help/#post-17951159)
 * Hello [@metesey](https://wordpress.org/support/users/metesey/)
 * Thank you very much for using our plugin. Javascript is a case-sensitive language,
   you should not confuse the “IF” plugin operation with the “if” conditional statement.
   Please edit the equation as follows:
 *     ```wp-block-code
       IF(IN(8,fieldname17|r),1,0)
       ```
   
 * Best regards.
 *  Thread Starter [metesey](https://wordpress.org/support/users/metesey/)
 * (@metesey)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/checkboxes-help/#post-17951613)
 * Thanks, problem solved.

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

The topic ‘Checkboxes help’ 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/)

## Tags

 * [check](https://wordpress.org/support/topic-tag/check/)
 * [checkboxes](https://wordpress.org/support/topic-tag/checkboxes/)

 * 2 replies
 * 2 participants
 * Last reply from: [metesey](https://wordpress.org/support/users/metesey/)
 * Last activity: [1 year, 9 months ago](https://wordpress.org/support/topic/checkboxes-help/#post-17951613)
 * Status: resolved