What's the correct way to make my custom button on...
# suitescript
n
What's the correct way to make my custom button on a form redirect to a suitelet? the docs show using window.open to create a popup, I'd prefer just to redirect
s
Just set the window.location.href instead if you dont want a popup
n
Oh ok, so functionName is just eval'd?
Hmm that did not work the same way
Copy code
require([], function(){ window.location.href="<https://www.xxxx.com?chgtype=cancellation&transid=22177429>"(); }); return false;
is how it generated the code when I did that
I'm adding this from a UE
wrapped it in () and the generated code turns it into an IFFE so it works. thanks