Siebel CRM Desktop for Microsoft Outlook 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. Add the following code to the forms.js file:

    validator.validate_empty_field("field_name","controlId","string_key",boolean_highlight);

    where:

    • field_name is the name of the field you must examine.
    • controlId is the name of the control in the form that Siebel CRM Desktop uses to display the field.
    • string_key is the string key in the resource file that contains the text for the message that CRM Desktop displays in the client if the validation fails.
    • boolean_highlight is an optional parameter that determines if CRM Desktop displays a highlighting box around the control in the client to indicate that the field is required. The default value is true.

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

    validator.validate_empty_field("Name","opportunity","msg_opportunity_name_validation");

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

    For more information, see Republishing Customization Packages.

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