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!
Copy Custom Column contents to a Custom Body Field - Help!!
I am trying to copy the text in custom column field called "comments" "id=custcol11" to a custom body filed called "Item Options" "id=custbody3" on a sales order form and am having no luck... can someone look at this code and let me know where I am going wrong?
function grab_line_comments()
{
var disp="";
for (i=1;i<=nlapiGetLineItemCount('item');i++)
{
var item_name = nlapiGetLineItemText('item','comments',i);
disp += item_name + ',';
nlapiSetFieldValue('custbody3',disp);
}
return true;
}
Thank you in advance!!!
Trevor
0