Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
beforeLoad and Web Store
The business goal is to dynamically display "FREE SHIPPING" if the online price of an item is greater than x.
I have created a test script for beforeLoad on the item. The beforeLoad is executing as I see the log.
The code:
var vShipping = "/site/templates/ct-itemtemplate-freeshippin.jpg";
nlapiSetFieldValue('custitem_ship_cost', vShipping);
nlapiLogExecution("Debug", "vShipping v1.0",
"vShipping="
+vShipping
);
When I view this in the UI, it works and custitem_ship_cost=/site/templates/ct-itemtemplate-freeshippin.jpg
When I view this in the web store, it does not work
custitem_ship_cost='' (it does will not display a value).
Would anyone know if it is possible to use a beforeLoad and expect the results to display on a item drill down?