Title: Dependencies help
Last modified: December 7, 2023

---

# Dependencies help

 *  Resolved [kcap24](https://wordpress.org/support/users/kcap24/)
 * (@kcap24)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/dependencies-help/)
 * Field 1 – number
 * Field 2 – number
 * Field 3 – Calculation from 1&2
 * Field 4 – Radio buttons
 * Field 5 – Radio buttons
 * I want the calculation in Field 4 to only show if Field 3 < 28 but right now 
   it is showing at default.
 * Field 3 dependencies that I have set:
 * If less than 28 show Field 4
 * If greater or equal to 28 show field 5. This part is working.
 * How do I get Field 4 to ONLY appear if Field 3 < 28?

Viewing 1 replies (of 1 total)

 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/dependencies-help/#post-17260932)
 * Hello [@kcap24](https://wordpress.org/support/users/kcap24/)
 * Thank you very much for using our plugin.
 * I’ll try to describe the process with a hypothetical example. Assuming the current
   equation is fieldname1+fieldname2, you can edit it as follows:
 *     ```wp-block-code
       (function(){
         var result = fieldname1+fieldname2;
         if(result < 28 ){ 
           ACTIVATEFIELD(fieldname4|n);
           IGNOREFIELD(fieldname5|n);
         } else {
           ACTIVATEFIELD(fieldname5|n);
           IGNOREFIELD(fieldname4|n);
         }
         return result;
       })()
       ```
   
 * Learn more about the ACTIVATEFIELD and IGNOREFIELDS operations in the following
   section of the plugin documentation:
 * [https://cff.dwbooster.com/documentation#managing-fields-module](https://cff.dwbooster.com/documentation#managing-fields-module)
 * Best regards.

Viewing 1 replies (of 1 total)

The topic ‘Dependencies 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [codepeople](https://wordpress.org/support/users/codepeople/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/dependencies-help/#post-17260932)
 * Status: resolved