Hi,
I made an order form.
At the beginning the customer gives his address and choose whether it is a company or a private person.
If he choose company then display the additional fields that are required, as is the case with the private person.
My problem is that, and here and here are the required fields.
How do validation to check for only the fields that are not hidden?
The idea is that when you fill in all fields for example: as a company is not sending the form because hidden fields also require validation
Sorry for my bad English