Oracle CRM On Demand JavaScript API Developer's Guide > JavaScript API Code Samples >

Code Sample for Hiding a Button


The following sample code hides the copy button on the Opportunity Detail page.

oraclecrmod.onReady(function()

{

// when on the Contact Detail page

if(oraclecrmod.ctx.object == "Opportunity" && oraclecrmod.ctx.isDetailPage())

{

// get the Copy button

button = oraclecrmod.getButton("BTN_TB_OpportunityForm_OpportunityPreCopyNav");

// hide the button

button.hide();

}

});

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