I have a form with fields I need to validate based on the users selection like so.
The fields involved are E12, E13, E14 and E15.
The logic needs to be
E12 = 02 or 05, E13 needs to be 98, E14 needs to be 99, E15 needs to be 99.
E12 = 04, E13 needs to be 03, E14 needs to be 01, 02, 03, 04, 05, E15 needs to be 99.
E12 = 03, E13 needs to be 01 or 02, E14 needs to be 99, E15 needs to be 02.
E12 = 01 E13 needs to be 01 or 02, E14 needs to be 99, E15 needs to be 01, 02, 03.
Any 1 of the above is valid and the form should be submitted anything else should be thrown back with an error message.
I previously submitted this problem and got a good solution but I assumed I would be able to nest this solution in order to expand it and cover all the options this gave me a very obscure error message.
So I am reposting in the hope someone can help as I am running out of time and finding this the hardest part of my application.
Any help would be greatly appreciated.