You are not crazy, SS2.0 External Suitelets don’t run clientside code

You are not crazy, SS2.0 External Suitelets don’t run clientside code

Hey guys, just letting you know that I encountered an issue recently. I was trying to create a Suitelet “Available without Login” that uses a form and I was attaching a button and a clientscript to it, but guess what? The button doesn’t work. I checked the console and every time I call the button I get “require is not defined” error:

8pJdqVF

So I stripped the suitelet to the most barebones version and I still got the error. I verified with others and it seems to be a defect from SS2.0 External Suitelets.
At the end of the day I was able to run the code by hacking the dom like so:

and as the clientscript file I have this:

Totally not recommended, but just throwing it out there.