make checkout field mandatory if
-
Hi guys!
I’ve created several new checkout fields for my checkout page.
one field is the first radio button withtype 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 whenbusiness
is selected, it is not mandatory. If made required and the user selectsprivate
the field is not hidden with js, but present html-wise, so when completing, the validation gives an error to enter thebusiness name
. How can I change the validation to only check thebusiness name
field whenbusiness
is selected incustomer type
?
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.