Form Response Validation

How can I validate the format of responses?

For example, I want phone numbers entered as 000.000.0000, so when a user enters their phone as 0000000000, or 000-000-0000, they will be shown an error message that directs them to enter it in the appropriate format.

Also, is there any way to validate an email address?

Answers