so I've made my Client Side script SS2.0 now, but ...
# suitescript
e
so I've made my Client Side script SS2.0 now, but I have some custom functions that Im trying to call from the browser, but im getting an error of "is not defined" At the end of my SS2.0 ClientScript, I've returned these (the pageInit runs as expected)
_return_ {
pageInit: pageInit,
addButton: addButton,
setActionAndGo: setActionAndGo
};
But when I try to call setActionAndGo from the browser, I get "setActionAndGo is not defined"... am I missing something?
s
If you want to test the functionality of the custom functions, paste them in the console then use them. You would need to use currentRecord.get() instead of context.currentRecord for testing them in the console.