Preview:
//Max value 10 characters 


getFieldById(getFieldChanged()).getValue().toString().find("[^0-9,\\.]|[0-9]{11,}|[0-9,\\.]{12,}|.*\\.[0-9]{3,}") ? getFieldById(getFieldChanged()).setError('Only numeric characters allowed, maximum to 10 including 2 decimal places') : getFieldById(getFieldChanged()).clearError();
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