Hello! Has anyone tried using custom code (script ...
# suitescript
j
Hello! Has anyone tried using custom code (script 1.0 or 2.0) on an Online Customer Form? Issue on Script 1.0 • Missing fields to declare functions (PAGE INIT FUNCTION,SAVE RECORD FUNCTION, VALIDATE FIELD FUNCTION, FIELD CHANGED FUNCTION) Issue on Script 2.0 • We're getting console errors: ◦
Uncaught TypeError: Cannot read property 'config' of undefined
Uncaught Error: Mismatched anonymous define() module: function(){return fa}
Note: I only have function declaration on the script file itself. TIA!
b
share the code
j
1.js,2.js
b
the scripts dont do anything interesting
make sure that the files are available without login
1
j
Yes they are.. this is a bit odd. I also tried on other browser just to check whether it's a browser issue but got same results
b
id try another form
j
How about when using HTML template instead of the default form template ? I haven't checked this on default form template yet...
Got same results for default form template, but it's not working on when using custom HTML Template.
b
you can try sharing your template
j
Thanks Battk, I'll check my template further I just came across an issue with my Online Customer Form, maybe you also happened to know. Is it possible to add 2 Custom fields (Document type) in an Online Customer Form? Use case is we need 2 files to be uploaded. <NLFILE> only captures 1 file.
b
no idea