Siebel CRM Desktop for IBM Notes 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 InitValidators procedure is defined in the class that the form references.
For more information, see Preparing to Use Validation.
- Open IBM Domino Designer, open the SBL.Forms script library, and then add the following code to the class that the form references:
vld.ValidateFieldLength fields_array_ex, ids_array_ex, maximum_length, StrReplace(validation_message, "[comment_max_length]", maximum_length, boolean_skip_empty_fields), ""
where:
vld.ValidateFieldLength NewSmartArray().Add("Comments"), NewSmartArray().Add("Comments"), 1500, StrReplace(MSG_ACTIVITY_COMMENT_LENGTH, "[comment_max_length]", 1500, False), ""
where:
- Test your changes and then republish the customization package.
For more information, see Republishing Customization Packages.
|