4,401
edits
Changes
no edit summary
==Validating Phone Number Custom Fields==
Custom validation and format for phone number [[Custom Fields|custom fields]].
The following functions are available to apply custom validation and format for phone number fields:
* '''Javascript Validation''' - isPhoneStr(@value@,'XXX-XXX-XXXX')
* '''HTML Tag''' - onchange="this.value=convertPhoneStr(this.value,'XXX-XXX-XXXX')"
Multiple validations can be used by using the OR operator - isPhoneStr(@value@,'XXX-XXX-XXXX') OR isPhoneStr(@value@,'X-XXX-XXX-XXXX')
[[Image:Phone.png]]
[[Category:System Management]][[Category:Browser Scripts]]
Custom validation and format for phone number [[Custom Fields|custom fields]].
The following functions are available to apply custom validation and format for phone number fields:
* '''Javascript Validation''' - isPhoneStr(@value@,'XXX-XXX-XXXX')
* '''HTML Tag''' - onchange="this.value=convertPhoneStr(this.value,'XXX-XXX-XXXX')"
Multiple validations can be used by using the OR operator - isPhoneStr(@value@,'XXX-XXX-XXXX') OR isPhoneStr(@value@,'X-XXX-XXX-XXXX')
[[Image:Phone.png]]
[[Category:System Management]][[Category:Browser Scripts]]