Siebel CRM Desktop for IBM Notes Administration Guide > Customizing Siebel CRM Desktop > Validating the Data That Users Enter >
Making Sure Users Enter Unique Values
You can use validation to make sure the value that the user enters in a field is unique. To make sure the user enters unique values
- 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.ValidateUniqueFields fields_array_ex, ids_array_ex,boolean_skip_empty_fields,validation_message, ""
where:
vld.ValidateUniqueFields NewSmartArray().Add("Name").Add("CRMDAccountId"), NewSmartArray().Add("Name").Add("CRMDAccountId"), False, MSG_OPPORTUNITY_NAME_ACCOUNT_NOT_UNIQUE, "
where:
- Test your changes and then republish the customization package.
For more information, see Republishing Customization Packages.
|