Changes

JavaScript Validation

78 bytes added, 16:37, 26 October 2007
no edit summary
If @value@ is not found, the system will automatically put it at the very front of the validation criteria.
'''Where'''
n is any number
== means equal to
'''Example'''
To have a [[Custom Fields|custom field]] only accept values larger than 100, enter
@value@.length<n
'''Where'''
n is any number
'''Example'''
To limit the number of characters in a field to 35 or less
@value@>n && @value@<n
'''Where'''
n is any number
() means brackets :-)
'''Example'''
To have a [[Custom Fields|custom field ]] only accept values between 100 and 200, enter
" @value@>99 && @value@<201 "
A = Alphanumeric
'''AND'''
isEmptyOK is
True or False
'''Example'''
To validate 9 digits SIN number, put this into the box
isFloat(@value@.replace(/c/g,""),true)
'''where'''
c is any character
'''Example'''
To allow a field to only hold numbers and a semi-colon
4,401
edits