Kristopher Wood
10/14/2025, 9:30 PMKristopher Wood
10/14/2025, 9:31 PM// Suitelet side
form.addButton({
id: 'custpage_run_command',
label: 'Run Command',
functionName: 'runCommand'
});
// Client side
function runCommand() {
// Do stuff
}Kristopher Wood
10/14/2025, 9:42 PMconst runCommand = () => {
const rec = currentRecord.get();
const command = rec.getValue({ fieldId: 'custpage_command' });
console.log('Current Record Command Field Value:', command);
};Derek Jackson
10/14/2025, 9:58 PMBryan Miller
10/15/2025, 4:21 PMKristopher Wood
10/15/2025, 5:19 PMKristopher Wood
10/15/2025, 5:19 PM