// 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();
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter