you gotta set the client script on the form if you...
# suitescript
c
you gotta set the client script on the form if you haven't done so (form.clientScriptModulePath = <relative_path_to_js_file> ex: form.clientScriptModulePath = './my_script.js';)