I have a document which saves and I have a field with the vtype of email. If I save the doc, even though there isn't a valid email address in there, it still saves.

I know I need to but some validation either in the save handler or the onSubmit but don't know what to put - can anyone help