Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
Address Form script creating issue on the parent Client Script, throwing error while fetching addres
HI,
I have a Client script for validating address details on parent (like Contact, Customer).
I have written some script on Address Form for setting some field, which is working. When I click OK on Address Form, the entered address is reflected in address sublist under Contact.
Now when I click Add button to invoke my address validation script on Contact, it throw error while fetching the address fields, below is the line of code where its failing
var address1 = nlapiGetCurrentLineItemValue('addressbook', 'addr1');
Error:
nlobjError {id: null, code: "UNEXPECTED_ERROR", details: "TypeError: Cannot call method "createElement" of undefined (INVOCATION_WRAPPER#921)", stacktrace: "stacktrace: function nlobjError(c,a,b)arguments: {…onclick(event) arguments: {[object MouseEvent]}↵↵", suppressnotification: undefined, …}