Bookshelf Home | Contents | Index | PDF |
Oracle CRM On Demand JavaScript API Developer's Guide > JavaScript API Code Samples > Code Sample for Changing the Behavior of a Save ButtonThe following code customizes the Save button on the Account Edit page so that the code changes the owner of the record: if(oraclecrmod.ctx.isObject("Account") && oraclecrmod.ctx.isEditPage()){ var btnSave = oraclecrmod.getButton("BTN_TB_AccountEditForm_Save"); btnSave.offAll("click").on("click",function(){ //set on screen value api to set the value. oraclecrmod.getField('Owner Alias').setValue("User1"); |
Oracle CRM On Demand JavaScript API Developer's Guide, Release 36 | Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |