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.
Please note that on Saturday, April 11, 2026, at 8:00 PM Pacific time, our Case Management System will undergo a scheduled maintenance for approximately 30 minutes. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
Need help defining criteria for script to hide null image fields
We have some items with two images and some items with only one. I want one drill-down template to use for both, BUT I don't want a broken image showing in the web-store when an item only has one image. See attached script... that would be part of our universal drill-down template.
<script type="text/javascript">
if ( ********** )
{
document.write('<style type="text/css">#ImageNumberTwo { display: none; }</style>');
}
</script>
I need to set ********** to specify something like...
<%=getCurrentAttribute('item','custitem_ImageNumberTwo')%> is <null>
How would that be formatted?
0