Siebel CRM Desktop for IBM Notes Administration Guide > Customizing Siebel CRM Desktop > Validating the Data That Users Enter >

Making Sure Users Enter Information in a Field


You can use validation to make sure the user enters information in a field.

To make sure the user enters information in a field

  1. Make sure the form_validator object is defined.

    For more information, see Preparing to Use Validation.

  2. Open IBM Domino Designer, and then open the SBL.Forms script library and then add the following code to the class that the form references:

    Dim Fields As New ArrayEx("")
    Dim Controls As New ArrayEx("")
    Fields.Push "field_name"
    Controls.Push "control_id"
    vld.ValidateEmptyField Fields, Controls, "validation_message", ""

    where:

    • field_name is the name of the field you must examine.
    • controlId is the Lotus Id of the control in the form that CRM Desktop uses in the InitValidators procedure.
    • validation_message is a variable of the validation message that CRM Desktop displays in the client if the validation fails.

      For example, the following code makes sure the user enters information in the Opportunity Name field:

    Dim Fields As New ArrayEx("")
    Fields.Push "Name"
    vld.ValidateEmptyField Fields, Fields, MSG_OPPORTUNITY_NAME_REQUIRED, ""

    For more information, see Opening IBM Domino Designer.

  3. Test your changes and then republish the customization package.

    For more information, see Republishing Customization Packages.

Siebel CRM Desktop for IBM Notes Administration Guide Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Legal Notices.