Setup an Online Customer form, added a simple js file with the entry points as per the image, simple alert / console.log but see neither on pageInit. Any ideas? I have set the file to available offline in case that's the issue
NElliott
05/26/2022, 3:27 PM
Literally just:
j
jen
05/26/2022, 6:38 PM
The custom form script on an online form isn’t like the ones for internal NetSuite forms. It’s just a vanilla javascript file.
jen
05/26/2022, 6:39 PM
included by the webpage
b
battk
05/26/2022, 7:32 PM
what does the file record for the client script look like'
n
NElliott
05/27/2022, 8:54 AM
@jen I hear you, I found it did not respect the fact it was SS2.0 if I did not structure it as indicated.
A colleague tried to do the same but with SS1.0 and that works... interested to know if you've done it with SS2 and what that file looked like
j
jen
05/27/2022, 3:38 PM
Our only normal online forms just use boring regular JS, not even really SS1 or SS2 at all. Most of our forms are actually created with Suitelets as they are a bit more complex than what can be achieved with the NetSuite online form tool.