Does anyone use links instead of buttons to run cl...
# suitescript
m
Does anyone use links instead of buttons to run client functions on records? In SS1.0 if you use form.setScript() in a UE you can then create fields with a link just calling functions in that client script file, e.g. a text field with default value:
Copy code
'<a href="#" onclick="functionName(); return false;">Click Here</a>'
But in SS2.0 I can only seemingly call functions in context.form.clientScriptModulePath via buttons added in the UE, not links (or the browser console, etc.). Any ideas on a proper way to pull that off short of putting the entire function code in the onclick of the link (which I've done but feels messy and prone to future issues)?