• Hi guys!

    I’ve created several new checkout fields for my checkout page.
    one field is the first radio button with type klant this lets the user choose between customer type (business or private). when either is selected, some fields are hidden/shown by me with Javascript.

    The business name (bedrijfsnaam) field is shown when business is selected, it is not mandatory. If made required and the user selects private the field is not hidden with js, but present html-wise, so when completing, the validation gives an error to enter the business name. How can I change the validation to only check the business name field when business is selected in customer type?

    https://www.ads-software.com/plugins/woocommerce/

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘make checkout field mandatory if’ is closed to new replies.