Hello! New here, so please let me know if I should...
# suitescript
g
Hello! New here, so please let me know if I should be asking this elsewhere -- I'm looking for some documentation on Online Case Forms and how to correctly deploy the 'Custom Code'. I have a super simple script (SSv1) and just one function but I get an error saying that the function is not defined. I'm sure I'm missing something simple, but I'm also not having a lot of luck finding any examples or documentation on how to do this properly. Any advice?
s
I don't use 1.0 but on the script record/deployment, is the onLoad function filled out in Netsuite?
g
It's not actually a script deployment, it's under the 'custom code' section on the Online Case Form, which just takes a .js file -- no link to the File Cabinet, Script Record, or Script deployment.
Here is the code:
Copy code
function onLoad (thing) {
  console.log(thing);
}
It looks like almost exactly what they did here, but it's not working for me: https://netsuite.custhelp.com/app/answers/detail/a_id/25283/kw/online%20case%20form%20custom%20code
b
the code is fine, and your custom code of your form looks good too
probably want to double check that the file is available for login and doesnt have any restrictions that would restrict access to it