function onCustomButtonClick(s, e) { debugger; if (e.buttonID == "Clone" || e.buttonID=="Delete") { //Next one is the line e.processOnServer = true; } }