Hi, I've attached a client script to my SS2.0 suit...
# suitescript
u
Hi, I've attached a client script to my SS2.0 suitelet using
form.clientScriptModulePath
I'm able to see
pageInit
function triggered in browser when the suitelet is rendered. How do I call a CS custom function from within the suitelet?
m
Your client script will have to return the custom function, just like it returns the pageInit function.
u
Yes, the script returns the custom function, but what's the scope to call it? I mean, the
pageInit
function call is part of the stardard flow, no need to write anything in suitelet. But how/where do I call the custom function in suitelet?
e
What event/action/trigger do you want to invoke your custom function?
I wouldn't expect the Suitelet to be calling anything from your Client Script.