Oracle CRM On Demand JavaScript API Developer's Guide > Getting Started with the JavaScript API >

About Enabling and Disabling Customized Code in Oracle CRM On Demand


Administrators can enable and disable custom JavaScript code and other types of customized code for a user by setting the Customized Code Enablement field in a user's profile. Also, if the administrator adds the Customized Code Enablement field to the User Owner page layout for a user role, then users who have that role can disable and enable customized code for themselves by setting the Customized Code Enablement field in their personal profile.

Disabling all customized code can be helpful in troubleshooting technical issues you experience while working in Oracle CRM On Demand. If the issue no longer occurs when the customized code is disabled, then it is likely that the customized code is the cause of the issue.

The Customized Code Enablement picklist field determines whether all customized code on the pages in Oracle CRM On Demand is enabled or disabled for the user, and whether the customized code indicator is enabled or disabled for the user. The following options are available:

  • Enabled. This is the default setting in the standard application. When this option is selected, all of the customized code that is available in the pages in Oracle CRM On Demand is enabled, but the customized code indicator is not enabled.
  • Enabled with indicator. When this option is selected, all of the customized code that is available in the pages in Oracle CRM On Demand is enabled. In addition, the customized code indicator is enabled.
  • Disabled with indicator. When this option is selected, all of the customized code that is available in the pages in Oracle CRM On Demand is disabled. In addition, the customized code indicator is enabled.

When the customized code indicator is enabled, one of the following messages appears at the bottom of each page that you access in Oracle CRM On Demand:

  • Customized code active. Customized code is detected and is active in the current page.
  • Customized code not detected. No customized code is detected in the current page.
  • Customized code disabled. Customized code is detected in the current page, but the customized code is disabled.

When customized code is active in a page, the customized code is visible in the source code for the page, with comments to mark the start and end of the customized code. When the customized code is disabled, the customized code is not included in the source code for the page. Instead, the source code includes a comment to indicate that the customized code is disabled.

For more information about enabling and disabling customized code see Oracle CRM On Demand Online Help.

Oracle CRM On Demand JavaScript API Developer's Guide, Release 38 Copyright © 2019, Oracle and/or its affiliates. All rights reserved. Legal Notices.