Title: Conditional Fields
Last modified: October 20, 2020

---

# Conditional Fields

 *  Resolved [ahh_wang](https://wordpress.org/support/users/ahh_wang/)
 * (@ahh_wang)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/conditional-fields-47/)
 * Hello,
 * I have a BMI calculator set up (thank you support!) and now I want to have some
   conditional text fields show based on the numerical value in a specific field(
   BMI).
 * For example, the numerical values are below and I want the text to show based
   on the number in the BMI field.
 * below 18.5 – you’re in the underweight range.
    between 18.5 and 24.9 – you’re
   in the healthy weight range. between 25 and 29.9 – you’re in the overweight range.
   above 30 – you’re in the obese range.
 * Most likely it would be an HTML field so I can style a button along with it.
 * This is my current form – [http://prntscr.com/v3eepf](http://prntscr.com/v3eepf)

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

 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/conditional-fields-47/#post-13559793)
 * Hello [@ahh_wang](https://wordpress.org/support/users/ahh_wang/)
 * An alternative would be to insert some “HTML Content” fields with the texts you
   want. And then define these fields as dependent on the result of the calculated
   field that calculates the BMI
 * More information about dependencies, by reading the following post in the plugin’s
   blog:
 * [https://cff.dwbooster.com/blog/2020/03/01/dependencies/](https://cff.dwbooster.com/blog/2020/03/01/dependencies/)
 * Best regards.
 *  Thread Starter [ahh_wang](https://wordpress.org/support/users/ahh_wang/)
 * (@ahh_wang)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/conditional-fields-47/#post-13559807)
 * In the HTML Content field there is no options to define dependencies – [http://prntscr.com/v3ejor](http://prntscr.com/v3ejor)
 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/conditional-fields-47/#post-13559817)
 * Hello [@ahh_wang](https://wordpress.org/support/users/ahh_wang/)
 * Please, read the recommended posts. The dependencies are defined in the calculated
   field to display the HTML Content fields based on the equation’s result.
 * Best regards.

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

The topic ‘Conditional Fields’ 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

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

 * 3 replies
 * 2 participants
 * Last reply from: [codepeople](https://wordpress.org/support/users/codepeople/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/conditional-fields-47/#post-13559817)
 * Status: resolved