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!
rich text fields and nlapiGetFieldValue
Has anyone else noticed this problem.
I have a number of solution records which have HTML within the longdescription field. I then made the following changes:
Solution Record:
- set longdescription field to inline text
- add new Rich Text field 'details'
On page init, use a script to convert the 'old' long description contents to the 'new' rich text field 'details'.
Here are the problems:
1. nlapiGetFieldValue returns an empty value for longdescription. I also found that nlapiGetFieldValue only returned the first line of HTML code in a hidden field.
Workaround (use DOM):
1. document.getElementById('longdescription').value returns the correct contents in FireFox but returns empty value in IE.
0