This is my actual script. (the above was just an example for ease) even when adding semi colons It still emails first and then hides the fields. I even added the emailme, thinking that it would have to go through those steps first to get to the email me, but still no luck . if (errorcount == 0) ...