Siebel CRM Desktop for Microsoft Outlook Administration Guide > Customizing Siebel CRM Desktop > Validating the Data That Users Enter >
Making Sure Users Do Not Exceed the Maximum Number of Characters
You can use validation to make sure the user does not enter more than a maximum number of characters in a field. To make sure users do not exceed the maximum number of characters
- Make sure the form_validator object is defined.
For more information, see Preparing to Use Validation.
- Add the following code to the forms.js file:
validator.validate_field_length("field_name","control_Id","maximum_length","string_key");
where:
validator.validate_field_length("Comment","description",1500,"msg_activity_comments_validation");
- Test your changes and then republish the customization package.
For more information, see Republishing Customization Packages.
|