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.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Update: Narrative Insights has been restored and is now available.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
nlapiGetFieldValue returns null value in 'View' mode
I have created a custom transaction body field. Type is inline HTML. At the bottom of this HTML is a <script> directive that points to a javascript file that needs to be included on the page. So far, so good. In this script I need to access the 'total' field -
var total = nlapiGetFieldValue('total');
This call returns the total value when in 'Edit' mode, but returns a null value when in 'View' mode. Obviously this causes problems.
What's the correct approach to placing custom javascript code on a rendered HTML page? Or is there a better API call to use here?
0