Oracle CRM On Demand Desktop Administration Guide > Customizing Oracle CRM On Demand Desktop > Performing Typical Customization Work >

Making a Field in Oracle CRM On Demand Desktop Read-Only


This topic describes how to add a field in Oracle CRM On Demand Desktop and how to make the field read-only so it cannot be modified by users.

To make a field in Oracle CRM On Demand Desktop read-only

  1. Use a JavaScript editor to open the forms.js file.
  2. Locate the field that you want to make read-only.
  3. Append the control.enabled attribute to the field, and set it to False, for example:

    ctx.form.control_id.enabled = false;

  4. Save and close the forms.js file.
Oracle CRM On Demand Desktop Administration Guide, Version 5.1, Rev A Copyright © 2017, Oracle and/or its affiliates. All rights reserved. Legal Notices.