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.
'form' arguement on a custom record returns null?
I am trying to add a field to a custom record by calling .addField using a beforeload script.
When I use the form arguement I do not get the nlobjForm returned, only null.
When I call :
[SIZE=2]
[LEFT][COLOR=#0000c0]var select = form.addField('selectfield','select','Custom');
I get this error:
You have entered an invalid form element name. It must be prefixed with "custpage", unique, and cannot contain any non-alphanumeric characters in order to be added to the form or sublist.
[COLOR=black]I am trying the sample code. What needs to be prefixed with "custpage"? [/COLOR]
[/LEFT]
[LEFT]
0