Using Share Point Designer 2010.
I want to conduct client side validation (jquery) but I don’t know how to run my code before the form gets submitted. The reason for this is my form has jquery that hides/shows certain fields . So different fields are mandatory depending on client side selection.
Originally I tried to do this with the built in server sided validation but they cannot handle conditional validation, I don’t think.
I believe this bit of JavaScript may help, assuming you have jQuery loaded as well: