// Phone number validator (simple)


getFieldById(getFieldChanged()).getValue().toString().find("[^0-9]|.{11,}") ? getFieldById(getFieldChanged()).setError("This field only allows 10 characters and they must be numeric.") : getFieldById(getFieldChanged()).clearError();