Making Forms Read-Only

You can configure Siebel CRM Desktop to make a form in the client read-only. The user can view values in a read-only form but cannot modify these values.

To make forms read-only

  1. Open the form handler of the object that you must make read-only.

    For more information, see Customizing Form Handlers.

  2. Add the following code to the form handler that you located in step 1:

    form_helpers.enable_form(ctx.form, editable);
    

    where:

    • ctx.form identifies the form that Siebel CRM Desktop must make read-only.

    • editable is one of the following values:

      • true. Makes the form readable and writable.

      • false. Makes the form read-only.

    For example:

    form_helpers.enable_form(ctx.form, true);
    
  3. Add the following code to make the view readable:

    ctx.form.view_name.enabled = true;
    

    For example:

    ctx.form.contacts_view.enabled = true;
    

    If you make a form read-only in step 2, then it is recommended that you enable the view that the form uses so that the user can scroll down through the form, can scroll to the side of the form, and can drill down on a record.