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.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
After Submit script not working...
I'm trying to populate a custom field for an inventory item with some HTML that utilizes the new internalid for the part that was just created. I've read some posts here and think I have all my ducks in a row but the script is not executing correctly even though I'm getting all the correct values back when I send the data to the logger. Here's my code:
function afterSubmit(type) { var product_id = nlapiGetRecordId(); var record_type = nlapiGetRecordType(); var html = '<my_code_here>' + product_id + '</code>'; var record = nlapiLoadRecord(record_type, product_id); record.setFieldValue('custitem_customhtml', html); } 0