How come my button is showing above the rows? My code looks like this:
const ui_form = ui.createForm({
title: 'Merged Data from Saved Searches'
});
//Create Sublist Structure
const sublist = ui_form.addSublist({
id: 'custpage_sales_orders',
type: ui.SublistType.LIST,
label: 'Transactions'
});
sublist.addButton({
id : 'download',
label : 'Download',
functionName: 'Download_PDF'
});
sublist.addField({
id: 'custpage_internal_id',
label: 'Internal ID',
type: ui.FieldType.TEXT
});