Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
SiteBuilder - Get Alt Image Tag
I am wondering if anyone knows how to get a image file's Alt Image Tag value.
In Site Builder Item/Category Template, I have a item template coded this way:
<a href="<%=getCurrentAttribute('item', 'storeurl')%>"><img src="<%=getCurrentAttribute('item', 'storedisplaythumbnail', '/SC/images/noImageList.jpg')%>" alt=""/></a>
As you can see, the code use getCurrentAtribute of the item's storedisplaythumnail to get the product image file url. I need to populate the Alt field from this image file (the field value is Alttagcaption). If I have the Alt Image Tag field set for this product image file (see screenshot below), my question is, how to code so that I can get this product image file's Alt Image tag in above piece of code?