Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Custom HTML template vs Default template
I have created a Custom HTML template for an online Case form, and for some reason the scripts that run fine on a default template, do not 'set' or 'get' functions on the custom one. The good news is that the alerts below pop up, but there must be something missing in the template. Yes, I do have the <NLFORM> in there and it looks like NetSuite has put all it's hidden fields and stuff in it.
function pageinit(){
alert('hello');
nlapiSetFieldValue('title','CCI request');
alert('goodby')
}
Just to make sure the fields were there correctly I went to see if the fields were there at all with a script on validate line:
0