Thanks for your response. I think I still need a little more clarification for my situation. As I said earlier I don’t know JS so I would prefer to find a solution by adding something to what I already have. The JS you provided may work but I don’t know where to put it and what values to change to fit my needs. Here is JS I’m using.
$(document).ready(function(){
$("#contactLink").click(function(){
if ($("#contactForm").is(":hidden")){
$("#contactForm").slideDown("slow");
}
else{
$("#contactForm").slideUp("slow");
}
});
});
function closeForm(){
$("#messageSent").show("slow");
setTimeout('$("#messageSent").hide();$("#contactForm").slideUp("slow")', 2000);
}
All of the error messages/validation are being displayed by FormIt and not JS.
This is how I think (not sure) it should work...
The visitor fills in the form and submits
if - an error is returned by FormIt the slide-drawer-thingy stays out and displays the error messages
else-the form is processed by FormIt, success message is displayed and then the form slides out.
Thanks again.