MRJG
06/29/2023, 10:16 PMconst recordId = context.newRecord.id;
const recordType = context.newRecord.type
const printButton = form.addButton({
id: 'custpage_print_button',
label: 'Print Commercial Invoice',
functionName: 'printTemplate(' + recordId + ',' + recordType + ')'
})
battk
06/29/2023, 10:26 PMAnthony OConnor
06/29/2023, 10:28 PM'printTemplate("'+ recordId + '","' + recordType + '")'
MRJG
06/29/2023, 10:32 PMMarvin Roman
06/29/2023, 10:47 PM