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 2: Sample form
Figure 3: Sample configuration
Figure 4: Sample error on form