Thank you for your reply it was partially helpful. The code from the link does give an alert message, but it still allows email submission. The email coding does not tie into an already created submit button. Does anyone know the code to stop an email submission directly when .mandatory = "error" ...