Support » Plugin: WooCommerce Checkout Manager » 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.