Functions
#
getId() → {String}
Get the id of button
id
Examples
var buttonObj = ZDK.Page.getButtons();
buttonObj[0].getId();
1101122131
#
getType() → {String}
Get the type of button
type
Examples
var buttonObj = ZDK.Page.getButtons();
buttonObj[0].getType();
system or custom
#
getLabel() → {String}
Get the name of button
name
Examples
var buttonObj = ZDK.Page.getButtons();
buttonObj[0].getLabel();
Save
#
getApiName() → {String}
Get the API name of button
api_name
Examples
var save_btn = ZDK.Page.getButton('record_save');
save_btn.getApiName();
record_save
#
click()
Initiate button click event
Example
var save_btn = ZDK.Page.getButton('record_save');
save_btn.click();
#
disable()
Disable the button
Example
var save_btn = ZDK.Page.getButton('record_save');
save_btn.disable();
#
enable()
Enable the button
Example
var save_btn = ZDK.Page.getButton('record_save');
save_btn.enable();
#
setLabel(label)
Set label for the button
Parameters:
Name | Type | Description |
---|---|---|
label |
String | Button label |
Example
var save_btn = ZDK.Page.getButton('record_save');
save_btn.setLabel('Approve & Save');