Title: Required conditional fields not being validated
Last modified: January 13, 2018

---

# Required conditional fields not being validated

 *  Resolved [mikylucky](https://wordpress.org/support/users/mikylucky/)
 * (@mikylucky)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/required-conditional-fields-not-being-validated/)
 * Hi,
    if I add some conditional fields that I need to be required, they are not
   going to be validated by Woocommerce even though they have the class “validate-
   required”. E.g. The parent field is checked, so the conditional fields are visible
   to the user. They have the class “validate-required”, but if I submit the form
   without filling them, the form will proceed anyway.
 * Moreover, if some conditional required fields are hidden, thus not required in
   that moment, Stripe gateway will fail because it will consider them still required.
   
   I managed to solve this problem by creating a js function that adds/removes on
   the fly the “validate-required” class. But the first problem is still unsolved.
 * WooCommerce Checkout Manager 4.1.6
    WooCommerce 3.2.6 WordPress 4.9.1

The topic ‘Required conditional fields not being validated’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-checkout-manager/assets/icon-256x256.jpg?rev
   =2911736)
 * [Checkout Field Manager (Checkout Manager) for WooCommerce](https://wordpress.org/plugins/woocommerce-checkout-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-checkout-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-checkout-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-checkout-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-checkout-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-checkout-manager/reviews/)

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [mikylucky](https://wordpress.org/support/users/mikylucky/)
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/required-conditional-fields-not-being-validated/)
 * Status: resolved