Kevin Baxter
07/17/2023, 7:04 PMEric B
07/17/2023, 7:27 PMKevin Baxter
07/17/2023, 7:27 PMconst beforeLoad = (scriptContext) => {
if(scriptContext.type === scriptContext.UserEventType.VIEW){
var form = scriptContext.form
var record = scriptContext.newRecord
var sublist = form.getSublist({id: 'item'})
sublist.addButton({
id : 'custpage_button_id',
label : 'Test',
functionName: ""
});
log.debug("type", scriptContext.type)
log.debug("type", scriptContext.UserEventType.VIEW)
}
}
Michael
07/17/2023, 7:39 PMKevin Baxter
07/17/2023, 7:40 PM