The Duplicate Value Validator can be used to prevent duplicate value and to enforce an input format.
Figure 1: Configuration tab for Duplicate Value Validator
Example:
Implementing validation on field "phone" to make it as:-
Figure 4: Sample error on form