UE script: ``` form.addButton({ id: 'custpage_c...
# suitescript
x
UE script:
Copy code
form.addButton({
   id: 'custpage_consolidate_docs',
   label: 'Consolidate Supporting Docs',
   functionName: "consolidatePDFs(" +  "'" + ctx.newRecord.id + "',"  + folder +  ");"
 });


ctx.form.clientScriptModulePath = "./libraries/PDF_Consolidate.js"
s
Copy code
form.addButton({
  id: 'custpage_consolidate_docs',
  label: 'Consolidate Supporting Docs',
  functionName: 'consolidatePDFs("'+ctx.newRecord.id +'","'  + folder +  '")"';
});
brother, try the above ☝️
x
Still no luck
s
i'd suggest you do s try catch and give us some logs
x
I have logs in the client script and none of them are firingf
s
try putting in the clientscript
Copy code
debugger;
in the beginning and see after f12 if it fires
we can call but that should be the normal debug procedure