I'm working on this very long and complex form, but I'll try to keep my examples pretty basic. The form has over 200 fields, and has many conditional variations.
As an example, lets say my form starts with a single question and has two radio button options. Question would be something like:
Do you have a car? Answer Yes, or No.
If you answer No, it'll display 100 questions (with other conditionals of its own), and lets say that 50 of those 100 are required.
If you answer Yes, it'll display 100 questions (with other conditionals of its own), and lets say that 50 of those 100 are required.
I have some JavaScript that marks any hidden fields as disabled when the form submits, so that the hidden required don't hang the form up. Works perfectly this way. But the issue I am having is, if I answer yes, and I answered 40 of the 50 required fields, the html5 error message doesn't come up because of the hidden fields.
What I am trying to do is that when a field isn't filled, but required, it would do something other than popping up that error message. Like changing the text color to red or something.
Is this doable with the default HTML5 validation?