Discussions
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
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, …}