I've a bootstrap form which has a few fields. By default, the 1st and the 2nd fields are mandatory.
Now, if the 3rd field is filled out, the 4th one becomes mandatory. Similarily, if the 4th field is filled out, the 3rd one becomes mandatory.
However, if both 3rd & 4th fields are not filled out, they're not mandatory. I'm also using the HTML5 form validation here.
So, here if you see, the fields Name & Date of Registration are mandatory by default. However, I'm trying to make Website mandatory when Company is filled out! And similarly, make Company mandatory, when Website is filled out! If neither company not website are filled out, both of these fields are not mandatory!