Hi all, brain freeze .. when I use the `addButton`...
# suitescript
d
Hi all, brain freeze .. when I use the
addButton
, can I put an inline function into the
functionName
field? I don't want all the over head of adding client scripts, etc for a simple redirect button.
n
Yep!
Example:
Copy code
form.addButton({ id: "custpage_move_bins", label: "Move Bins", functionName: `window.open('${suiteletUrl}', "_blank", "toolbar=yes,scrollbars=yes,resizable=yes,width=800,height=800")` });
❤️ 1