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!
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