Bookshelf Home | Contents | Index | PDF | ![]() ![]() |
Siebel CRM Desktop for Microsoft Outlook Administration Guide > Customizing Siebel CRM Desktop > Process of Customizing Objects in Siebel CRM Desktop > Defining Validation Rules for a Phone NumberTo define validation rules for the phone number in a contact record or an account record, you can add the following regular expression to the forms_xx.xml file: var phonetest = new RegExp(/\(?[0-9]{3}\)?[-. ]?[0-9]{3}[-. ]?[0-9]{4}/); item["Work Phone #"] != '' ? (item["Work Phone #"].match(phonetest) != null ? true : false) : true;
In this example, the following phone numbers are valid: The following phone numbers are not valid: To define another validation, you can specify another regular expression in the rule tag of the forms_xx.xml file. This number format is specific to telephone networks in the United States. For a different country, you must use the numbering format that is specific to that country. To define validation rules for a phone number
|
![]() |
![]() ![]() |
Siebel CRM Desktop for Microsoft Outlook Administration Guide | Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |