Bookshelf Home | Contents | Index | PDF |
Siebel CRM Desktop for Microsoft Outlook Administration Guide > XML Files Reference > XML Code to Customize Forms > Validation Rules Tag of the forms_xx.xml FileThe validation_rules tag contains descriptions of validation rules. There is no limitation on the number of validation rules that you can define. Each rule is described in a rule tag. The validation_rules tag can include the following attributes:
The validation_rules tag can contain the following tags:
Example Code of the Validation Rules TagThe following code is an example of the validation_rules tag: <rule message="Last Name is required." expression="item['Last Name'] != ''"> <asserted_control id="0x1000"></asserted_control> <rule message="Business phone value format is incorrect."> 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; |
Siebel CRM Desktop for Microsoft Outlook Administration Guide | Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |